1
1
mirror of https://github.com/primer/css.git synced 2025-01-06 22:36:48 +03:00
css/script/after_success
Shawn Allen 477945e5a0 reorganize CI release logic
- move final release into Travis 'deploy' stage
- move PR and RC release logic into script/after_success
- kill script/cibuild
2017-07-27 13:25:57 -07:00

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"