1
1
mirror of https://github.com/primer/css.git synced 2024-12-18 19:51:37 +03:00

Publish alpha release any time we're not on a release branch or master

This commit is contained in:
Jon Rohan 2017-11-02 09:18:46 -07:00
parent f6dde1e1da
commit 43b8b8ebc3

View File

@ -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