We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f933f commit dd0867fCopy full SHA for dd0867f
.github/workflows/deploy-docs.yml
@@ -0,0 +1,26 @@
1
+name: Deploy Rust Docs
2
+
3
+on:
4
+ push:
5
+ branches: [ main, doc ]
6
7
+jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v4
14
15
+ - name: Install Rust
16
+ uses: dtolnay/rust-toolchain@stable
17
18
+ - name: Build Documentation
19
+ run: cargo doc --no-deps
20
21
+ - name: Deploy to GitHub Pages
22
+ uses: peaceiris/actions-gh-pages@v4
23
+ with:
24
+ github_token: ${{ secrets.GITHUB_TOKEN }}
25
+ publish_dir: ./target/doc
26
0 commit comments