mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-04-28 12:52:49 +02:00
fix git tag cmd in travis (5)
This commit is contained in:
parent
3995dee394
commit
81f31a3106
|
@ -16,13 +16,13 @@ branches:
|
|||
before_deploy:
|
||||
- git config --global user.email "maxgug@hotmail.com"
|
||||
- git config --global user.name "koalyptus"
|
||||
- export GIT_TAG=$(git describe --tags)
|
||||
- export GIT_TAG=$(git describe --tags --abbrev=0)
|
||||
- echo -n $GIT_TAG
|
||||
- export NEW_GIT_TAG=$(node -p -e "require('./package.json').version")
|
||||
- echo -n $NEW_GIT_TAG
|
||||
- |
|
||||
if [ $GIT_TAG != $NEW_GIT_TAG ]; then
|
||||
git tag $NEW_GIT_TAG -am "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
|
||||
git tag $NEW_GIT_TAG -am "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
|
||||
fi
|
||||
deploy:
|
||||
- provider: releases
|
||||
|
|
Loading…
Reference in a new issue