File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name: Host Documentation
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+
7
+ permissions:
8
+ contents: read
9
+ pages: write
10
+ id-token: write
11
+
12
+ jobs:
13
+ build:
14
+ name: Build documentation
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+
23
+ - name: Install Rust toolchain
24
+ uses: dtolnay/rust-toolchain@stable
25
+
26
+ - name: Build Documentation
27
+ run: cargo doc -p root --no-deps
28
+
29
+ - name: Upload GitHub Pages artifact
30
+ uses: actions/upload-pages-artifact@v3.0.1
31
+ with:
32
+ path: target/doc/root
33
+
34
+ deploy:
35
+ name: Deploy to GitHub Pages
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+
39
+ environment:
40
+ name: github-pages
41
+ url: ${{ steps.deployment.outputs.page_url }}
42
+
43
+ steps:
44
+ - name: Deploy to GitHub Pages
45
+ id: deployment
46
+ uses: actions/deploy-pages@v4.0.5
You can’t perform that action at this time.
0 commit comments