Skip to content

Commit c7f6e4b

Browse files
authored
Create host-documentation
1 parent 2b58803 commit c7f6e4b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/host-documentation

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

0 commit comments

Comments
 (0)