From 9763918091dceeb124d7b58b240516a464c7fb96 Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Mon, 8 Jun 2020 02:01:14 -0500 Subject: [PATCH] Fix $NETLIFY_DEPLOY_PROD --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7cbaad7..11c63a3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,9 +19,9 @@ export NETLIFY_SITE_ID=$NETLIFY_SITE_ID export NETLIFY_AUTH_TOKEN=$NETLIFY_AUTH_TOKEN # Deploy with netlify -if [ -z $NETLIFY_DEPLOY_TO_PROD ] +if [[ $NETLIFY_DEPLOY_TO_PROD == "true" ]] then - netlify deploy --dir=$BUILD_DIRECTORY --functions=$FUNCTIONS_DIRECTORY --message="$INPUT_NETLIFY_DEPLOY_MESSAGE" -else netlify deploy --dir=$BUILD_DIRECTORY --functions=$FUNCTIONS_DIRECTORY --prod --message="$INPUT_NETLIFY_DEPLOY_MESSAGE" +else + netlify deploy --dir=$BUILD_DIRECTORY --functions=$FUNCTIONS_DIRECTORY --message="$INPUT_NETLIFY_DEPLOY_MESSAGE" fi