-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.02 KB
/
site.yml
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
38
39
40
41
42
43
44
name: Publish website
on: workflow_dispatch
permissions:
contents: read
id-token: write
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Set up
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install npm dependencies
run: |
yarn install --immutable
- name: Install mdbook
run: |
curl -fSsL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | tar -xvz -C ~/.cargo/bin
# Publish website
- name: Build website
env:
MDBOOK_OUTPUT__HTML__SITE_URL: /kdl/
run: |
yarn book
- name: Upload website
uses: actions/upload-pages-artifact@v3
with:
path: documentation/book
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4