Skip to content

Commit

Permalink
Merge pull request #5 from danielfrg/patch-1
Browse files Browse the repository at this point in the history
Fix $NETLIFY_DEPLOY_PROD
  • Loading branch information
jsmrcaga authored Jun 8, 2020
2 parents df38ca5 + 9763918 commit aee9117
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aee9117

Please sign in to comment.