diff --git a/.travis.yml b/.travis.yml index 363fea9a..a44cb435 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,5 +9,3 @@ before_script: script: - mdbook build - mdbook test -after_success: - - test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 512fa003..00000000 --- a/deploy.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -o errexit -o nounset - -if [ "$TRAVIS_BRANCH" != "master" ] -then - echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!" - exit 0 -fi - -rev=$(git rev-parse --short HEAD) - -cd book - -git init -git config user.name "Steve Klabnik" -git config user.email "steve@steveklabnik.com" - -git remote add upstream "https://$GH_TOKEN@github.com/rust-lang-nursery/edition-guide.git" -git fetch upstream -git reset upstream/gh-pages - -touch . - -git add -A . -git commit -m "rebuild pages at ${rev}" -git push -q upstream HEAD:gh-pages