-
Notifications
You must be signed in to change notification settings - Fork 32
50 lines (39 loc) · 997 Bytes
/
deploy.yml
File metadata and controls
50 lines (39 loc) · 997 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
38
39
40
41
42
43
44
45
46
47
48
49
50
# based on `https://github.com/purrbot-site/Docs/blob/master/.github/workflows/deploy.yml`
name: Deploy Site
on:
push:
branches:
- master
paths:
- "book/**"
- ".github/workflows/deploy.yml"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Chekout code
uses: actions/checkout@v5
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set up mdbook
run: |
cargo install mdbook
- name: Build documentation
run: |
mdbook build book
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: "book/book"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4