Only deploy if NOW_TOKEN is set

main
Mike Fix 7 years ago
parent 412abda0da
commit d5f786bad9

@ -2,6 +2,7 @@
# 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") NOW_URL=$(now -e NODE_ENV=production --public --no-clipboard --team=dawn --token="$NOW_TOKEN")
@ -11,3 +12,4 @@ if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
"$DAWN_SLACK_WEBHOOK" "$DAWN_SLACK_WEBHOOK"
fi fi
fi fi
fi

Loading…
Cancel
Save