Skip to content

Commit 9ad8d55

Browse files
bors[bot]yerke
andauthored
Merge #24
24: Fix broken book publishing on Travis r=therealprof a=yerke The books were not published on https://docs.rust-embedded.org/ since March 16 2020. Last successful build [here](https://travis-ci.org/github/rust-embedded/docs/builds/662804843), first broken build [here](https://travis-ci.org/github/rust-embedded/docs/builds/663216351). [Here](https://travis-ci.org/github/rust-embedded/docs/builds) you can see the long list of failures. I took the changes from https://github.com/rust-embedded/discovery/blob/d42012eedb4216ae8b613c3fdfdb37f85f01656f/ci/install.sh . For proof that the changes fix the issue see my fork in https://github.com/yerke/docs, which was successfully built with Travis in [here](https://travis-ci.com/github/yerke/docs/builds/174282136). You can see built artifacts at https://github.com/yerke/yerke.github.io/tree/gh-pages and https://yerke.github.io . Closes #8, rust-embedded/wg#457, rust-embedded/discovery#253 Co-authored-by: Yerkebulan Tulibergenov <[email protected]>
2 parents 3dddc79 + 2f6af74 commit 9ad8d55

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ci/install.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
set -euxo pipefail
22

33
main() {
4-
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \
4+
local tag=$(git ls-remote --tags --refs --exit-code \
5+
https://github.com/rust-lang/mdbook \
56
| cut -d/ -f3 \
6-
| grep -E '^v0.2.[0-9]+$' \
7+
| grep -E '^v[0-9\.]+$' \
78
| sort --version-sort \
89
| tail -n1)
9-
# Temporarily use older version until packages are available for 0.2.2 (or newer)
10-
local tag="v0.2.1"
10+
1111
curl -LSfs https://japaric.github.io/trust/install.sh | \
12-
sh -s -- --git rust-lang-nursery/mdbook --tag $tag
12+
sh -s -- \
13+
--force \
14+
--git rust-lang/mdbook \
15+
--tag $tag
1316

1417
pip install linkchecker --user
1518
}

0 commit comments

Comments
 (0)