Remove -tag from path if no tag for build directory

This commit is contained in:
Igor Gassmann 2018-03-09 10:26:34 -05:00
parent da5021ad27
commit a8e0e112cf

View file

@ -47,4 +47,4 @@ addons:
paths:
- $(git ls-files -o dist/{*.dmg,*.exe,*.AppImage} | tr "\n" ":")
target_paths:
- /app/commit-${TRAVIS_COMMIT:0:7}_build-${TRAVIS_BUILD_NUMBER}_tag-${TRAVIS_TAG}
- /app/commit-${TRAVIS_COMMIT:0:7}_build-${TRAVIS_BUILD_NUMBER}$(if env | grep -q ^TRAVIS_TAG=; then echo _tag-${TRAVIS_TAG}; fi)