diff --git a/.travis.yml b/.travis.yml index d194558700..12f085c1c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,7 @@ script: - git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds - cd ../MindustryBuilds - echo ${TRAVIS_BUILD_NUMBER} > version.txt -- TEST_TAG=v9999 -- echo versionName=4-fdroid-${TEST_TAG}$'\n'versionCode=${TEST_TAG:1} > version_fdroid.txt +- if [ -z "$TRAVIS_TAG" ]; then echo versionName=4-fdroid-${TRAVIS_TAG}$'\n'versionCode=${TRAVIS_TAG:1} > version_fdroid.txt; fi - git add . - git commit -m "Updating to build ${TRAVIS_BUILD_NUMBER}" - git tag ${TRAVIS_BUILD_NUMBER}