From 43b8b8ebc36e4aac7b688ce01f2491302c3590e9 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