Merge pull request #1170 from Manishearth/travis-gh-pages

Fix Travis not pushing gh-pages for tags
This commit is contained in:
llogiq 2016-08-17 17:26:00 +02:00 committed by GitHub
commit c4b37236ba

7
.github/deploy.sh vendored
View File

@ -35,8 +35,11 @@ fi
# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
echo "Generated, won't push"
exit 0
# Tags should deploy
if [ -z "$TRAVIS_TAG" ]; then
echo "Generated, won't push"
exit 0
fi
fi
# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc