Skip to content

Commit 84e4d59

Browse files
committed
☕ Use pre-build binaries for mdbook and mdbook-alerts
1 parent 8ac976c commit 84e4d59

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/mdbook.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,22 @@ jobs:
3232
MDBOOK_VERSION: 0.4.36
3333
steps:
3434
- uses: actions/checkout@v4
35-
- name: Install mdBook
36-
run: |
37-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
38-
rustup update
39-
cargo install --force --version ${MDBOOK_VERSION} mdbook
40-
cargo install --force mdbook-alerts
35+
36+
- name: Install mdbook and cargo-binstall binaries
37+
uses: taiki-e/install-action@v2
38+
with:
39+
tool: mdbook,cargo-binstall
40+
41+
- name: Install mdbook extensions
42+
run: cargo binstall -y mdbook-alerts
43+
4144
- name: Setup Pages
4245
id: pages
4346
uses: actions/configure-pages@v4
47+
4448
- name: Build with mdBook
4549
run: mdbook build
50+
4651
- name: Upload artifact
4752
uses: actions/upload-pages-artifact@v3
4853
with:

0 commit comments

Comments
 (0)