Add GitHub action to deploy to WikiTree

This commit is contained in:
Przemek Więch
2021-11-30 10:28:13 +01:00
parent 97bd4bd7e2
commit 138ead5358
2 changed files with 25 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
@@ -17,7 +17,8 @@ jobs:
- run: npm run build
- run: npm test
- 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
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
env: