From 63632f1137f6e86472c019bb1e8a62e0918a7dbb Mon Sep 17 00:00:00 2001 From: Vanessa Yuen Date: Fri, 3 Nov 2017 14:36:25 +0800 Subject: [PATCH] fix circle config --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cd4a4dfb4..edfb1c231 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -120,8 +120,8 @@ jobs: - run: name: Upload distribution command: | - if [ "$ELECTRON_RELEASE" == "1" ]; then - echo 'Uploading Electron release distribution' + if [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" != "1" ]; then + echo 'Uploading Electron release distribution to github releases' script/upload.py elif [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" == "1" ]; then echo 'Uploading Electron release distribution to s3' @@ -184,8 +184,8 @@ jobs: - run: name: Upload distribution command: | - if [ "$ELECTRON_RELEASE" == "1" ]; then - echo 'Uploading Electron release distribution' + if [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" != "1" ]; then + echo 'Uploading Electron release distribution to github releases' script/upload.py elif [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" == "1" ]; then echo 'Uploading Electron release distribution to s3' @@ -249,8 +249,8 @@ jobs: - run: name: Upload distribution command: | - if [ "$ELECTRON_RELEASE" == "1" ]; then - echo 'Uploading Electron release distribution' + if [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" != "1" ]; then + echo 'Uploading Electron release distribution to github releases' script/upload.py elif [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" == "1" ]; then echo 'Uploading Electron release distribution to s3'