wip rework #147
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
- run: yarn install --frozen-lockfile | |
- run: yarn build --if-present | |
- name: GitHub Pages action | |
# You may pin to the exact commit or the version. | |
# uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# Set a target branch for deployment. | |
publish_branch: gh-pages-deploy | |
# Set an input directory for deployment. | |
publish_dir: build | |
# Set a custom commit message with a triggered commit hash | |
commit_message: Automated GH Pages deploy | |
enable_jekyll: false |