Only tag if travis is building without a tag

This commit is contained in:
creeper123123321 2019-04-06 14:55:25 -03:00 committed by GitHub
parent 9324b3a756
commit 3676c07a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,5 @@ deploy:
install: true
script:
# Set up git user name and tag this commit
- git config --local user.name "creeper12313321"
- git config --local user.email "creeper123123321@gmail.com"
- export TRAVIS_TAG=${TRAVIS_TAG:-build-$TRAVIS_JOB_NUMBER}
- git tag -f $TRAVIS_TAG
- if [ -z $TRAVIS_TAG ]; then; git config --local user.name "creeper12313321"; git config --local user.email "creeper123123321@gmail.com"; export TRAVIS_TAG=build-$TRAVIS_JOB_NUMBER; git tag -f $TRAVIS_TAG
- ./gradlew clean build