Updates with release 2.12.0 #806
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: Documentation | |
on: | |
pull_request: | |
branches: [documentation] | |
push: | |
branches: [documentation] | |
jobs: | |
checks: | |
if: github.event_name != 'push' | |
name: Test deployment | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Test build | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: | | |
yarn install --frozen-lockfile | |
yarn build | |
gh-release: | |
if: github.event_name != 'pull_request' | |
name: Deploy to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Build website | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: | | |
yarn install --frozen-lockfile | |
yarn build | |
# Popular action to deploy to GitHub Pages: | |
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GH_PAGES_DEPLOY_TOKEN }} | |
# Build output to publish to the `gh-pages` branch: | |
publish_dir: ./build |