Travis will deploy distrs if it is a push or api call on develop and master branches
@@ -62,7 +62,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_EVENT_TYPE" == "push" ]; then
+ ([ "$TRAVIS_EVENT_TYPE" == "push" ] || [ "$TRAVIS_EVENT_TYPE" == "api" ]); then
aws s3 cp $DIST_TGZ_NAME s3://cloud-pipeline-oss-builds/builds/latest/cloud-pipeline.latest.tgz
aws s3 cp $DIST_TGZ_NAME s3://cloud-pipeline-oss-builds/builds/${TRAVIS_BRANCH}/
fi
