Skip to content

Deploy docs

Deploy docs #43

Workflow file for this run

name: Deploy docs
on:
push:
paths:
- 'web/**'
jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
cache-dependency-path: 'web/yarn.lock'
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./web
- name: Build website
run: yarn build
working-directory: ./web
# 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.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./web/build