dgrove-oss commented on a change in pull request #4573: Publish OpenWhisk 
standalone jar to Github release
URL: 
https://github.com/apache/incubator-openwhisk/pull/4573#discussion_r309776347
 
 

 ##########
 File path: .travis.yml
 ##########
 @@ -94,3 +102,39 @@ jobs:
         - OPENWHISK_HOST="172.17.0.1" USERS="1" REQUESTS_PER_SEC="1" ./gradlew 
gatlingRun-org.apache.openwhisk.ColdBlockingInvokeSimulation
         - ./tools/travis/checkAndUploadLogs.sh perf
       name: "Performance Tests"
+
+before_deploy:
+  - export RELEASE_JAR_FILE="$TRAVIS_BUILD_DIR/bin/openwhisk-standalone.jar"
+  - echo "Deploying $RELEASE_JAR_FILE to GitHub releases."
+  - export GIT_TAG="nightly"
+  - 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 "[email protected]";
+      git config --global user.name "Travis CI";
+      export GIT_TAG="nightly";
+      git tag -d $GIT_TAG;
+      git push -q https://[email protected]/apache/incubator-openwhisk 
: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 
$GIT_TAG;
+    fi
+  - echo "The GIT_TAG of this Travis build is $GIT_TAG."
+
+deploy:
+  provider: releases
+  api_key:
+    secure: 
"BmUqo91TCbfhsLIIeeDPlg1501jigTOy3nmrKq13rq7lAGYUeGQcS3lwuRltnzDhZidwGXgXxMnCuc4gh5UIAia2uB0wQ5538njQMr0xQGgN9rbbXThTgoKXE+lSga0rBsLP/MCTB+7LaUoHXAUXFL7U7rJoyhG8jz9esQBIO12/3Nd8RZf991j0ddY+PBD768pQQ+FQjQPLuZxAFQXSlAiCkJj/l/LR1v51N94+5B9WIoSTuAVqb2E//0UMu+o+a5w3/eM9+owfZRJeLhKwERE9HSGWN/AeVbxJLYwKRiYo9fTVbOaMPEcvcZX2lTcvKlZbVmKioafvJuIBwJp3iO53nVH+MiMgs0qrSTQMQZVYFrEz58pJ6/LkUPkdM4Rn/HHZ3rn+pJh+hZLfKxocoXjUjs2fHMYfi4QHVt5N1CvqzdJmUEU2J9byr/LyIkp1XnmWgSvV7KbmWwiD6gI/vTfWyILWQZVWaOkqAriB3FH75Lx+Ni7x0+FtyIp7qeLpo6dx+alRAVgChhpw3qQto5kdq8+tJMKRhugEXWs2ng/NxCBoHFo7m4XWYIHAqFL5KdNUbfCQpkkW3zg+6camdeupd3vsUAnBtU231CTz6JDaWXMOYXC1izBwAXHgVgZ3Uq1IckBzAHHn3wWFVOr6JQnZbE5W01KoBRwNVwgs3ic="
 
 Review comment:
   comment on purpose of secure item would be good

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to