Fix deploy (for now)

main
Mike Fix 7 years ago
parent 3d4ba85732
commit 632bd85d27

@ -2,7 +2,6 @@
# Don't deploy if commit contains WIP # Don't deploy if commit contains WIP
set -e set -e
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
if [[ -z ${NOW_TOKEN+x} ]]; then
if [[ $(git log -1 --pretty=%B --no-merges) != *"WIP"* ]]; then if [[ $(git log -1 --pretty=%B --no-merges) != *"WIP"* ]]; then
NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token="$NOW_TOKEN") || exit 0 NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token="$NOW_TOKEN") || exit 0
@ -11,5 +10,4 @@ if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
--data "{\"text\": \":small_red_triangle: New Carbon PR Deployment for <https://github.com/dawnlabs/carbon/pulls/$TRAVIS_PULL_REQUEST|PR #$TRAVIS_PULL_REQUEST>\\n:rocket: $NOW_URL\"}" \ --data "{\"text\": \":small_red_triangle: New Carbon PR Deployment for <https://github.com/dawnlabs/carbon/pulls/$TRAVIS_PULL_REQUEST|PR #$TRAVIS_PULL_REQUEST>\\n:rocket: $NOW_URL\"}" \
"$DAWN_SLACK_WEBHOOK" "$DAWN_SLACK_WEBHOOK"
fi fi
fi
fi fi

Loading…
Cancel
Save