Create a tag before build

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

View File

@ -6,12 +6,6 @@ cache:
directories:
- "$HOME/.gradle/caches/"
- "$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:
provider: releases
api_key:
@ -23,4 +17,9 @@ deploy:
repo: ViaVersion/ViaFabric
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 $TRAVIS_TAG
- ./gradlew clean build