Use travis build number as a tag

This commit is contained in:
creeper123123321 2019-04-06 13:12:49 -03:00 committed by GitHub
parent 79ab452ec8
commit c875884619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,12 @@ cache:
directories: directories:
- "$HOME/.gradle/caches/" - "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/" - "$HOME/.gradle/wrapper/"
before_deploy:
# 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 $TRAVIS_TAG
deploy: deploy:
provider: releases provider: releases
api_key: api_key: