Skip to content

Commit

Permalink
Correct the build tag for Travis (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent authored and pritidesai committed Aug 17, 2018
1 parent c09715f commit ef1839a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ before_deploy:
- echo "Deploying $RELEASE_PKG_FILE to GitHub releases."
- export GIT_TAG="latest"
- export TAG=false;
- if [ ! -z "$TRAVIS_TAG" ] ; then
export GIT_TAG=$TRAVIS_TAG;
export TAG=true;
fi
# This tag is automatically generated for the latest merged commit in master branch.
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ "$TRAVIS_OS_NAME" == "linux" ] ; then
git config --global user.email "builds@travis-ci.com";
Expand All @@ -92,10 +96,6 @@ before_deploy:
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag $GIT_TAG -a -m "Generated tag from Travis CI build $TRAVIS_BUILD_NUMBER";
git push -f -q https://$API_KEY@github.com/apache/incubator-openwhisk-cli $GIT_TAG;
fi
- if [ ! -z "$TRAVIS_TAG" ] ; then
export GIT_TAG=$TRAVIS_TAG;
export TAG=true;
fi
- echo "The GIT_TAG of this Travis build is $GIT_TAG."

deploy:
Expand Down

0 comments on commit ef1839a

Please sign in to comment.