mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-19 22:25:18 +02:00
Conditional git tag command in travis
This commit is contained in:
parent
0631fd2ef7
commit
4378141d7d
|
@ -18,7 +18,8 @@ before_deploy:
|
||||||
- git config --global user.name "koalyptus"
|
- git config --global user.name "koalyptus"
|
||||||
- export GIT_TAG=$(node -p -e "require('./package.json').version")
|
- export GIT_TAG=$(node -p -e "require('./package.json').version")
|
||||||
- echo -n $GIT_TAG
|
- 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:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
on:
|
on:
|
||||||
|
|
Loading…
Reference in a new issue