initial commit #4
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: Build GitHub Pages | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 15.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 15.x | |
- run: git branch -D ghpages | |
continue-on-error: true | |
- run: git checkout -b ghpages | |
- run: rm .gitignore | |
- run: mv .gitignore.ghpages .gitignore | |
- run: npm ci | |
- run: npm run build | |
- run: git config user.name github-actions[bot] | |
- run: git config user.email github-actions[bot]@users.noreply.github.com | |
- run: git add -A | |
- run: git commit -m "build GitHub Pages" | |
- run: git push -f origin ghpages |