chore: Update Workflows
[skip ci]
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Host Plugins
|
name: Publish Plugins
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
host:
|
Publish:
|
||||||
if: github.repository == 'LNReader/lnreader-plugins'
|
if: github.repository == 'LNReader/lnreader-plugins'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -15,11 +15,11 @@ jobs:
|
|||||||
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: '18'
|
||||||
- name: Install dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Host plugins
|
- name: Publish Plugins
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ npm run generate
|
|||||||
npx tsc -m node16
|
npx tsc -m node16
|
||||||
npm run json
|
npm run json
|
||||||
git add -f public/static .dist .js/src/plugins total.svg
|
git add -f public/static .dist .js/src/plugins total.svg
|
||||||
git commit -m "Host plugins"
|
git commit -m "chore: Publish Plugins"
|
||||||
git push -f origin $dist
|
git push -f origin $dist
|
||||||
|
|
||||||
git checkout -f $current
|
git checkout -f $current
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ npm run generate
|
|||||||
npx tsc -m node16
|
npx tsc -m node16
|
||||||
npm run json
|
npm run json
|
||||||
git add -f public/static .dist .js/src/plugins total.svg
|
git add -f public/static .dist .js/src/plugins total.svg
|
||||||
git commit -m "Host plugins"
|
git commit -m "chore: Publish Plugins"
|
||||||
git push -f origin $dist
|
git push -f origin $dist
|
||||||
|
|
||||||
git checkout -f $current
|
git checkout -f $current
|
||||||
|
|||||||
Reference in New Issue
Block a user