mirror of
https://github.com/primer/css.git
synced 2025-01-06 22:36:48 +03:00
477945e5a0
- move final release into Travis 'deploy' stage - move PR and RC release logic into script/after_success - kill script/cibuild
14 lines
331 B
Bash
14 lines
331 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ "$TRAVIS_EVENT_TYPE" = "pull_request" ]]; then
|
|
if [[ "$TRAVIS_BRANCH" = "dev" ]]; then
|
|
script/release-pr
|
|
exit
|
|
elif [[ "$TRAVIS_PULL_REQUEST_BRANCH" =~ ^release ]]; then
|
|
script/release-candidate
|
|
exit
|
|
fi
|
|
fi
|
|
echo "⚠️ This is not a PR against 'dev', so skipping the canary release"
|