mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
Fix Travis not pushing gh-pages for tags
Turns out $TRAVIS_BRANCH is the tag name for tags.
This commit is contained in:
parent
909efec275
commit
495f4bbf9f
1 changed files with 5 additions and 2 deletions
7
.github/deploy.sh
vendored
7
.github/deploy.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue