Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit fa9e155

Browse files
authored
Use cargo to install mdbook, simplify (#30)
1 parent 8be0c30 commit fa9e155

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/pages-deployment.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
- main
88
- testmichele
99

10-
env:
11-
MDBOOK_VERSION: v0.4.40
12-
1310
jobs:
1411
deploy-cloudflare:
1512
runs-on: ubuntu-latest
@@ -20,16 +17,11 @@ jobs:
2017
steps:
2118
- name: Checkout
2219
uses: actions/checkout@v4
23-
- name: Install latest mdbook
24-
run: |
25-
url="https://github.com/rust-lang/mdbook/releases/download/$MDBOOK_VERSION/mdbook-$MDBOOK_VERSION-x86_64-unknown-linux-gnu.tar.gz"
26-
mkdir mdbook
27-
curl -sSL $url | tar -xz --directory=./mdbook
28-
echo `pwd`/mdbook >> $GITHUB_PATH
29-
- name: Add linkchek and run build Book
20+
- name: Install mdbook, linkchek and run build Book
3021
run: |
3122
# This assumes your book is in the root of your repository.
3223
# Just add a `cd` here if you need to change to another directory.
24+
cargo install mdbook
3325
cargo install mdbook-linkcheck
3426
mdbook build
3527
- name: Publish

0 commit comments

Comments
 (0)