From 9d448fb217016d5b0abd5a23d441b8fc9551144f Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Fri, 29 Sep 2017 10:50:58 +0200 Subject: [PATCH] Try to fix website deploy --- website/deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/deploy.sh b/website/deploy.sh index b3f0402a..0614e335 100755 --- a/website/deploy.sh +++ b/website/deploy.sh @@ -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