Skip to content

Deploy GitHub Pages #11

Deploy GitHub Pages

Deploy GitHub Pages #11

Workflow file for this run

name: Deploy GitHub Pages
on:
workflow_run:
workflows: ["Build rules"]
branches:
- main
types:
- completed
jobs:
deploy_gh_page:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable && yarn install --immutable --cwd doc
- name: Build the documentation
run: yarn doc:build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: doc/dist
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}