Skip to content

Commit 2d82d34

Browse files
Vincentpritidesai
Vincent
authored andcommitted
Fix the issue to generate artifacts with tag name (#960)
1 parent 796a8c2 commit 2d82d34

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.travis.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ before_deploy:
4848
- go get github.com/inconshreveable/mousetrap
4949
- export GIT_TAG="latest"
5050
- export TAG=false
51+
- if [ ! -z "$TRAVIS_TAG" ] ; then
52+
export GIT_TAG=$TRAVIS_TAG;
53+
export TAG=true;
54+
fi
5155
- ./gradlew --console=plain releaseBinaries -PpackageVersion=$GIT_TAG
5256
- "./tools/travis/build_tag_releases.sh $build_file_name $GIT_TAG"
5357
- export RELEASE_PKG_FILE="$(cd "$TRAVIS_BUILD_DIR/release" && ls ${zip_file_name}-*.tgz ${zip_file_name}-*.zip)"
@@ -60,12 +64,10 @@ before_deploy:
6064
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag $GIT_TAG -a -m "Generated tag from Travis CI build $TRAVIS_BUILD_NUMBER";
6165
git push -f -q https://[email protected]/apache/incubator-openwhisk-wskdeploy $GIT_TAG;
6266
fi
63-
- if [ ! -z "$TRAVIS_TAG" ] ; then
64-
export GIT_TAG=$TRAVIS_TAG;
65-
export TAG=true;
66-
fi
67-
- echo "The event type is $TRAVIS_EVENT_TYPE."
68-
- echo "The GIT_TAG of this Travis build is $GIT_TAG."
67+
- echo "TRAVIS_EVENT_TYPE is "
68+
- echo $TRAVIS_EVENT_TYPE
69+
- echo "GIT_TAG is "
70+
- echo $GIT_TAG
6971

7072
deploy:
7173
- provider: releases

0 commit comments

Comments
 (0)