Skip to content

Commit ef1839a

Browse files
Vincentpritidesai
authored andcommitted
Correct the build tag for Travis (#358)
1 parent c09715f commit ef1839a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ before_deploy:
8282
- echo "Deploying $RELEASE_PKG_FILE to GitHub releases."
8383
- export GIT_TAG="latest"
8484
- export TAG=false;
85+
- if [ ! -z "$TRAVIS_TAG" ] ; then
86+
export GIT_TAG=$TRAVIS_TAG;
87+
export TAG=true;
88+
fi
8589
# This tag is automatically generated for the latest merged commit in master branch.
8690
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ "$TRAVIS_OS_NAME" == "linux" ] ; then
8791
git config --global user.email "[email protected]";
@@ -92,10 +96,6 @@ before_deploy:
9296
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag $GIT_TAG -a -m "Generated tag from Travis CI build $TRAVIS_BUILD_NUMBER";
9397
git push -f -q https://[email protected]/apache/incubator-openwhisk-cli $GIT_TAG;
9498
fi
95-
- if [ ! -z "$TRAVIS_TAG" ] ; then
96-
export GIT_TAG=$TRAVIS_TAG;
97-
export TAG=true;
98-
fi
9999
- echo "The GIT_TAG of this Travis build is $GIT_TAG."
100100

101101
deploy:

0 commit comments

Comments
 (0)