We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b9c6fc commit f81e3f1Copy full SHA for f81e3f1
.github/workflows/deploy.yml
@@ -0,0 +1,24 @@
1
+name: Deploy mdBook to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: dtolnay/rust-toolchain@stable
17
+ - run: cargo test
18
+ - run: cargo install mdbook
19
+ - run: mdbook build book
20
+ - name: Deploy
21
+ uses: peaceiris/actions-gh-pages@v3
22
+ with:
23
+ github_token: ${{ secrets.GITHUB_TOKEN }}
24
+ publish_dir: ./book/book
0 commit comments