CI: Publish "stage" branch to S3 in the same manner as release
@@ -81,7 +81,7 @@ if [ "$TRAVIS_REPO_SLUG" == "epam/cloud-pipeline" ]; then
# Publish repackaged distribution tgz to S3 into builds/ prefix
# Only if it is one of the allowed branches and it is a push (not PR)
- if ([ "$TRAVIS_BRANCH" == "develop" ] || [ "$TRAVIS_BRANCH" == "master" ] || [[ "$TRAVIS_BRANCH" == "release/"* ]]) && \
+ if ([ "$TRAVIS_BRANCH" == "develop" ] || [ "$TRAVIS_BRANCH" == "master" ] || [[ "$TRAVIS_BRANCH" == "release/"* ]] || [[ "$TRAVIS_BRANCH" == "stage/"* ]]) && \
([ "$TRAVIS_EVENT_TYPE" == "push" ] || [ "$TRAVIS_EVENT_TYPE" == "api" ]); then
aws s3 cp $DIST_TGZ_NAME s3://cloud-pipeline-oss-builds/builds/latest/${TRAVIS_BRANCH}/cloud-pipeline.latest.tgz
aws s3 cp $DIST_TGZ_NAME s3://cloud-pipeline-oss-builds/builds/${TRAVIS_BRANCH}/
