1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 04:43:05 +03:00

skipping deploy

This commit is contained in:
Jon Rohan 2017-07-07 16:00:22 -07:00
parent a4d63922a4
commit 999c6d4372
2 changed files with 7 additions and 8 deletions

View File

@ -31,10 +31,4 @@ env:
- MODULE=primer-utilities
- MODULE=..;DEPLOY=true
script: cd modules/$MODULE && npm install && npm test
deploy:
provider: script
skip_cleanup: true
script: cd $TRAVIS_BUILD_DIR && script/deploy
on:
all_branches: true
condition: "$DEPLOY = true"
after_success: cd $TRAVIS_BUILD_DIR && script/deploy

View File

@ -1,8 +1,13 @@
#!/bin/sh
set -e
if [[ $DEPLOY != true ]]; then
echo "Skipping deploy."
exit 1
fi
# always publish a canary release if this is a PR build
if [[ $TRAVIS_PULL_REQUEST && $TRAVIS_PULL_REQUEST != false ]]; then
echo "🐦 Publishing canary version..."
echo "🐦 Publishing canary version..."
echo npm run release-canary
# merges to dev build a release candidate
elif [[ $TRAVIS_BRANCH = release ]]; then