Skip to content

Commit db0306a

Browse files
committed
Fix bug in shell script that was preventing deployment of the docs to gh-pages
1 parent 02c5c97 commit db0306a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ language: generic
55
env:
66
global:
77
- PROJECT_NAME=mdBook
8+
- secure: l3/qEC4krRerllLQzni8j5AjngFi6pluWvBWj//1mJLoIEYwxlQ9mYxEdd9BqccWWFn3K0bVYCVC/64+tP6sRfLkZCe2gPUtwe7ITwCDbapUxmkiRObVJCs5yMQZt6idyhHUDKAXKgNCrusfI2BM3tKGBfRK7Cnn/R/7p/U9+q7D1sgJtUKp6ypVzK6A3jLNp3dFLFI19a5KmbZMVsaa7tOhtdDJjjr7ebsc9z7HMW5/OItiWU3FSauVQQlUMaCiEgFuIG7H7OnBAYWB/gNEtLuwfLqU9UjtWk/njNNRnmJ7m3y5HbQhv5H5F5mJUOq9XFlPLwPwyTeVztSGdQm6k8Pp2pgKBUjY27afBl9BWU+msmN6k0oXfhvIebiBPe/x2udiKeFik1xqOOEU1q9dF0sZiuPxCSM1n7tgWklJ8epgaRQaMPPQw9pO/2H5/ynHCJqBlw6WcdiqWtwAyyr/GEx62u/cg5IVkqb7KLmYsWzjS8wYG4CYs1eIxCw2xPZxP0FGuUXvxTBUPipFze6Z7FqxVauXtVe2D7c1P4738HZP660rmR0GYtHtKLny1QxCCK9sxd9JmcezFCSz4YeQ1od9xc0OzGJ2ullKNGizmGfYmgL6X8faNylLIEdaiHAcY16xV3L0g3fXL1Qg360UHQyj7GIv+0nqQnf+H9xRTTU=
89

910
matrix:
1011
include:
@@ -68,10 +69,10 @@ script:
6869
- bash ci/script.sh
6970

7071
after_success:
71-
- test $TRAVIS_PULL_REQUEST == "false" &&
72-
test $TRAVIS_BRANCH == "master" &&
73-
test $TARGET == "x86_64-unknown-linux-gnu" &&
74-
test $TRAVIS_RUST_VERSION = "stable" &&
72+
- test "$TRAVIS_PULL_REQUEST" == "false" &&
73+
test "$TRAVIS_BRANCH" == "master" &&
74+
test "$TARGET" == "x86_64-unknown-linux-gnu" &&
75+
test "$CHANNEL" = "stable" &&
7576
npm install stylus nib &&
7677
bash deploy.sh
7778

deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ cargo doc
1515

1616
echo -e "${CYAN}Running mdbook build${NC}"
1717
# Run mdbook to generate the book
18-
target/$TARGET/debug/mdbook build book-example/
18+
target/"$TARGET"/debug/mdbook build book-example/
1919

2020
echo -e "${CYAN}Copying book to target/doc${NC}"
2121
# Copy files from rendered book to doc root
22-
cp -R book-example/book/* target/$TARGET/doc/
22+
cp -R book-example/book/* target/doc/
2323

24-
cd target/$TARGET/doc
24+
cd target/doc
2525

2626
echo -e "${CYAN}Initializing Git${NC}"
2727
git init

0 commit comments

Comments
 (0)