move to right place #1
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 run setup | |
npm run vendor | |
npm run build | |
- name: Deploy to GH Pages | |
run: | | |
git checkout -B gh-pages | |
mv 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 |