Build bug fix #861
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: Publish Documentation | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
gh-test: | |
if: github.event_name != 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- name: Install & Build | |
run: | | |
npm install | |
npm run build | |
gh-release: | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- name: Install & Build | |
run: | | |
npm install | |
npm run build | |
- uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build |