-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (30 loc) · 1.01 KB
/
Copy pathmain-docs.yml
File metadata and controls
32 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: deploy documentation
# Builds the docs site and publishes it to the gh-pages branch, which is what
# GitHub Pages serves. Authenticates with the automatic GITHUB_TOKEN, so there
# is no deploy key or secret to maintain.
on:
push:
branches: [main]
jobs:
build_docs_job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
# Docusaurus 3 requires Node >= 20. This was previously left to the
# runner default, which happened to be new enough but was not pinned.
node-version: '20.x'
- name: Build the Website
run: |
cd docs
yarn install --frozen-lockfile
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build # The folder the action should deploy.