-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 771 Bytes
/
docs.yml
File metadata and controls
38 lines (28 loc) · 771 Bytes
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
33
34
35
36
37
name: Docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
permissions:
pages: write # needed to publish to GitHub Pages
id-token: write # required for GitHub Pages deployment
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Generate docs
run: cd docs && npx hyperbook build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.hyperbook/out
- name: Deploy docs to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4