Skip to content

Commit 81cffbd

Browse files
committed
use precompile for mdbook
1 parent efb60d6 commit 81cffbd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/mdbook.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,16 @@ jobs:
3535
env:
3636
MDBOOK_VERSION: 0.4.36
3737
steps:
38-
- uses: actions/checkout@v4
39-
- name: Install mdBook
40-
run: |
41-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
42-
rustup update
43-
cargo install --version ${MDBOOK_VERSION} mdbook
38+
- uses: peaceiris/actions-mdbook@v1
39+
with:
40+
mdbook-version: "latest"
4441
- name: Setup Pages
4542
id: pages
4643
uses: actions/configure-pages@v4
44+
4745
- name: Build with mdBook
4846
run: mdbook build docs
47+
4948
- name: Upload artifact
5049
uses: actions/upload-pages-artifact@v3
5150
with:

0 commit comments

Comments
 (0)