Skip to content

Commit 1f9ada9

Browse files
committed
Publish alpha release any time we're not on a release branch or master
1 parent 50313f1 commit 1f9ada9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script/after_success

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
22
set -e
33

4-
branch=$TRAVIS_BRANCH
4+
branch=$TRAVIS_PULL_REQUEST_BRANCH
55
event=$TRAVIS_EVENT_TYPE
66

77
# only publish canary releases on PRs against dev
8-
if [[ "$event" = "pull_request" && "$branch" = "dev" ]]; then
8+
if [[ "$event" = "pull_request" ]] && [[ !("$branch" =~ ^release-.*) ]] && [[ !("$branch" = "master") ]];
9+
then
910
script/release-pr --yes
1011
fi

0 commit comments

Comments
 (0)