-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (37 loc) · 987 Bytes
/
Copy pathdocs.yml
File metadata and controls
45 lines (37 loc) · 987 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
name: Documentation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
name: Build Documentation
runs-on: ubuntu-latest
environment: ${{ github.ref == 'refs/heads/main' && 'github-pages' || null }}
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
rustflags: ""
- name: Build documentation
run: make doc
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v6
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v5
with:
path: ./target/doc-final
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v5