1
name: Deploy to GitHub Pages
8
- '.github/workflows/deploy-website.yml'
10
# Review gh actions docs if you want to further define triggers, paths, etc
11
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
18
name: Deploy to GitHub Pages
19
runs-on: ubuntu-latest
22
working-directory: website
24
- uses: actions/checkout@v3
25
- uses: actions/setup-node@v3
29
cache-dependency-path: ./website/yarn.lock
31
- name: Install dependencies
32
run: yarn install --frozen-lockfile
36
# Popular action to deploy to GitHub Pages:
37
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
38
- name: Deploy to GitHub Pages
39
uses: peaceiris/actions-gh-pages@v3
41
github_token: ${{ secrets.GITHUB_TOKEN }}
42
# Build output to publish to the `gh-pages` branch:
43
publish_dir: ./website/build
44
# The following lines assign commit authorship to the official
45
# GH-Actions bot for deploys to `gh-pages` branch:
46
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
47
# The GH actions bot is used by default if you didn't specify the two fields.
48
# You can swap them out with your own user credentials.
49
user_name: github-actions[bot]
50
user_email: 41898282+github-actions[bot]@users.noreply.github.com