From 1f9ada99af6d11da42bd2922d7380e52a581b685 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Thu, 2 Nov 2017 09:18:46 -0700 Subject: [PATCH] Publish alpha release any time we're not on a release branch or master --- script/after_success | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/after_success b/script/after_success index 4de048b3..3932ba06 100755 --- a/script/after_success +++ b/script/after_success @@ -1,10 +1,11 @@ #!/bin/bash set -e -branch=$TRAVIS_BRANCH +branch=$TRAVIS_PULL_REQUEST_BRANCH event=$TRAVIS_EVENT_TYPE # only publish canary releases on PRs against dev -if [[ "$event" = "pull_request" && "$branch" = "dev" ]]; then +if [[ "$event" = "pull_request" ]] && [[ !("$branch" =~ ^release-.*) ]] && [[ !("$branch" = "master") ]]; +then script/release-pr --yes fi