Add workflow step to publish a release (#261) #84
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy-gh-pages | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 'v18.13.0' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install and Build | |
run: | | |
npm install --ignore-scripts | |
npm run vendor | |
npm run build | |
- name: Deploy to GH Pages | |
run: | | |
git checkout -B gh-pages | |
cp -a app docs | |
cp CNAME docs/ | |
touch docs/.nojekyll | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
git add docs/ | |
git commit -m 'Artifacts' | |
git push -f origin gh-pages |