We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf720e commit ad1b272Copy full SHA for ad1b272
1 file changed
.github/workflows/mdbook.yml
@@ -33,11 +33,13 @@ jobs:
33
MDBOOK_VERSION: ^0.5
34
steps:
35
- uses: actions/checkout@v4
36
- - name: Install mdBook
+ - name: Install latest mdbook
37
run: |
38
- curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
39
- rustup update
40
- cargo install --version ${MDBOOK_VERSION} mdbook
+ tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
+ url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
+ mkdir mdbook
41
+ curl -sSL $url | tar -xz --directory=./mdbook
42
+ echo `pwd`/mdbook >> $GITHUB_PATH
43
- name: Setup Pages
44
id: pages
45
uses: actions/configure-pages@v5
0 commit comments