1
1
mirror of https://github.com/primer/css.git synced 2024-11-10 16:07:25 +03:00

rename to deploy

This commit is contained in:
Jon Rohan 2017-07-07 15:57:10 -07:00
parent 172f6c247c
commit 88a0b4e22f
2 changed files with 1 additions and 18 deletions

View File

@ -34,7 +34,7 @@ script: cd modules/$MODULE && npm install && npm test
deploy:
provider: script
skip_cleanup: true
script: cd $TRAVIS_BUILD_DIR && script/dev-deploy
script: cd $TRAVIS_BUILD_DIR && script/deploy
on:
all_branches: true
condition: "$DEPLOY = true"

View File

@ -1,17 +0,0 @@
#!/bin/sh
set -e
# 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 npm run release-canary
# merges to dev build a release candidate
elif [[ $TRAVIS_BRANCH = release ]]; then
echo "👌 Publishing release candidate..."
echo npm run release-candidate
elif [[ $TRAVIS_BRANCH = master ]]; then
echo "📦 Publishing latest release!"
echo npm run release
else
echo "⚠️ This isn't a PR and '${TRAVIS_BRANCH}' isn't a release branch."
exit 1
fi