mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-27 15:46:14 +00:00
Add GitHub action to deploy to WikiTree
This commit is contained in:
5
.github/workflows/deploy-gh-pages.yml
vendored
5
.github/workflows/deploy-gh-pages.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
@@ -17,7 +17,8 @@ jobs:
|
|||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- run: npm run cy:start-and-run
|
- run: npm run cy:start-and-run
|
||||||
- run: |
|
- name: Deploy
|
||||||
|
run: |
|
||||||
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
||||||
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
|
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
|
||||||
env:
|
env:
|
||||||
|
|||||||
22
.github/workflows/deploy-wikitree-apps.yml
vendored
Normal file
22
.github/workflows/deploy-wikitree-apps.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Deploy to WikiTree Apps
|
||||||
|
|
||||||
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
cache: 'npm'
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
|
- run: npm test
|
||||||
|
- run: npm run cy:start-and-run
|
||||||
|
- run: npm run deploy-wikitree
|
||||||
|
env:
|
||||||
|
LFTP_PASSWORD: ${{ secrets.WIKITREE_PASSWORD }}
|
||||||
Reference in New Issue
Block a user