mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-13 03:46:41 +02:00
fix git tag cmd in travis (3)
This commit is contained in:
parent
4bff89b70c
commit
7540169fcd
|
@ -16,9 +16,14 @@ branches:
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- git config --global user.email "maxgug@hotmail.com"
|
- git config --global user.email "maxgug@hotmail.com"
|
||||||
- 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=$(git describe --tags)
|
||||||
- echo -n $GIT_TAG
|
- echo -n $GIT_TAG
|
||||||
- git tag $GIT_TAG -am "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
|
- 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"
|
||||||
|
fi
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
on:
|
on:
|
||||||
|
|
Loading…
Reference in a new issue