1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-04-28 04:43:15 +02:00

Conditional git tag command in travis

This commit is contained in:
koalyptus 2018-04-29 17:42:31 +10:00
parent 0631fd2ef7
commit 4378141d7d

View file

@ -18,7 +18,8 @@ before_deploy:
- git config --global user.name "koalyptus"
- export GIT_TAG=$(node -p -e "require('./package.json').version")
- echo -n $GIT_TAG
- git tag $GIT_TAG -am "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- echo -n $TRAVIS_TAG
- test $TRAVIS_TAG != $GIT_TAG && git tag $GIT_TAG -am "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
deploy:
provider: releases
on: