1
1
mirror of https://github.com/primer/css.git synced 2024-11-13 08:04:16 +03:00

rename to deploy

This commit is contained in:
Jon Rohan 2017-07-07 15:57:33 -07:00
parent 88a0b4e22f
commit a4d63922a4

17
script/deploy Executable file
View File

@ -0,0 +1,17 @@
#!/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