Delete deploy.sh

main
Michael Fix 6 years ago committed by GitHub
parent 114f78c9e4
commit 1afba3d098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# Don't deploy if commit contains WIP
# TODO revisit this when deploy is stable
exit 0
set -e
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; 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
curl -X POST \
-H 'Content-type: application/json' \
--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"
fi
fi
Loading…
Cancel
Save