Try to fix website deploy

master
Simon Lydell 2017-09-29 10:50:58 +02:00
parent fa882b26af
commit 9d448fb217
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
#!/bin/bash
if [ ! $GITHUB_TOKEN ]; then
if [ "$NODE_ENV" = production ]; then
echo "info: skipping deploy in production builds"
exit 0
fi
if [ ! "$GITHUB_TOKEN" ]; then
>&2 echo "error: GITHUB_TOKEN not present in env"
exit 1
fi