diff options
| -rwxr-xr-x | scripts/ci_deploy.sh | 6 | ||||
| -rwxr-xr-x | scripts/trigger_release_build.sh | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/ci_deploy.sh b/scripts/ci_deploy.sh index 9659303a5..d6084c92d 100755 --- a/scripts/ci_deploy.sh +++ b/scripts/ci_deploy.sh @@ -18,9 +18,13 @@ if [ "${USERNAME}" == "AnySoftKeyboard" ]; then fi #check environment variable 'ASK_RELEASE_VARIANT' +REQUEST_TO_DEPLOY_RELEASE=$(git log -2 --pretty=%s | grep -e "^RELEASE:") BUILD_TYPE="" if [ "${ASK_RELEASE_VARIANT}" == "TRUE" ]; then - echo "Deploy build-type RELEASE" + echo "Deploy build-type RELEASE - due to build-parameter ASK_RELEASE_VARIANT" + BUILD_TYPE="assembleRelease publishRelease" +elif [ -n "${REQUEST_TO_DEPLOY_RELEASE}" ]; then + echo "Deploy build-type RELEASE - due to commit message starting with RELEASE" BUILD_TYPE="assembleRelease publishRelease" else echo "Deploy build-type CANARY" diff --git a/scripts/trigger_release_build.sh b/scripts/trigger_release_build.sh index 0b45a0f67..5eda4f3b6 100755 --- a/scripts/trigger_release_build.sh +++ b/scripts/trigger_release_build.sh @@ -15,7 +15,7 @@ if [[ $REPLY =~ ^[Yy]$ ]] then echo "!!!!!!!!!!!!!!RELEASING!!!!!!!!!!" curl \ - -o /tmp/buildtrigger.txt + -o /tmp/buildtrigger.txt \ --header "Content-Type: application/json" \ --data '{"build_parameters": {"ASK_RELEASE_VARIANT": "TRUE"}}' \ --request POST \ |
