Skip to content

Commit

Permalink
πŸ’š Use the latest build of mdBook
Browse files Browse the repository at this point in the history
* No explicit tag means the latest
  • Loading branch information
s373r committed Nov 11, 2021
1 parent e76d307 commit 40741ff
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ci/install-mdbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@ set -euxo pipefail
# https://github.com/rust-embedded/book/blob/master/ci/install.sh

main() {
# Note - this will only accept releases tagged with v0.3.x
local tag=$(git ls-remote --tags --refs --exit-code \
https://github.com/rust-lang-nursery/mdbook \
| cut -d/ -f3 \
| grep -E '^v0\.3\.[0-9]+$' \
| sort --version-sort \
| tail -n1)

curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git rust-lang-nursery/mdbook --tag $tag
sh -s -- --git rust-lang-nursery/mdbookk
}

main

0 comments on commit 40741ff

Please sign in to comment.