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