This is an automated email from the ASF dual-hosted git repository.
dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push:
new c1f96ec Update the releases page based on the commit build (#263)
c1f96ec is described below
commit c1f96ecb7263342eeb00b45eb5c37163b364d008
Author: Vincent <[email protected]>
AuthorDate: Thu Apr 5 10:48:27 2018 -0400
Update the releases page based on the commit build (#263)
---
.travis.yml | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 3a362cf..362cdff 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -67,19 +67,27 @@ script:
after_success:
- export DEPLOY_BUILD_READY=true
+
+before_deploy:
+ - export RELEASE_PKG_FILE="$(cd "$TRAVIS_BUILD_DIR/release" && ls
${zip_file_name}-*.tgz ${zip_file_name}-*.zip)"
+ - echo "Deploying $RELEASE_PKG_FILE to GitHub releases."
+ - export GIT_TAG="latest"
+ - export TAG=false;
# 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 "[email protected]";
git config --global user.name "Travis CI";
export GIT_TAG="latest";
git tag -d $GIT_TAG;
+ git push -q https://[email protected]/apache/incubator-openwhisk-cli
:refs/tags/$GIT_TAG;
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://[email protected]/apache/incubator-openwhisk-cli $GIT_TAG;
fi
-
-before_deploy:
- - export RELEASE_PKG_FILE="$(cd "$TRAVIS_BUILD_DIR/release" && ls
${zip_file_name}-*.tgz ${zip_file_name}-*.zip)"
- - echo "Deploying $RELEASE_PKG_FILE to GitHub releases."
+ - 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:
provider: releases
@@ -91,7 +99,9 @@ deploy:
- release/${zip_file_name}-*.zip
overwrite: true
skip_cleanup: true
+ target_commitish: $TRAVIS_COMMIT
+ tag_name: $GIT_TAG
on:
repo: apache/incubator-openwhisk-cli
- tags: true
+ tags: $TAG
condition: "$DEPLOY_BUILD_READY = true"
--
To stop receiving notification emails like this one, please contact
[email protected].