1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 15:14:59 +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 50313f1cf9
commit 1f9ada99af

View File

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
set -e set -e
branch=$TRAVIS_BRANCH branch=$TRAVIS_PULL_REQUEST_BRANCH
event=$TRAVIS_EVENT_TYPE event=$TRAVIS_EVENT_TYPE
# only publish canary releases on PRs against dev # 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 script/release-pr --yes
fi fi