From 045f85cd2ba8f785d13e791c2a5cc517425ca4e2 Mon Sep 17 00:00:00 2001 From: mat ess Date: Sun, 4 Dec 2022 17:43:09 -0500 Subject: [PATCH] Remove --site option --- script.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/script.sh b/script.sh index 0dc2c55..b0f1f7d 100755 --- a/script.sh +++ b/script.sh @@ -41,16 +41,10 @@ then NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --debug" fi -if [ -n "$PLUGIN_SITE" ] -then - NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE" - echo "> Deploying on Netlify…" && - echo "> (Using option $NETLIFY_DEPLOY_OPTIONS)" && - netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE"; -else - echo "> Error! site (site ID or name) and token are required" - exit 1 -fi +NETLIFY_AUTH="--auth $PLUGIN_TOKEN" +echo "> Deploying on Netlify..." && +echo "> (Using options $NETLIFY_DEPLOY_OPTIONS)" && +netlify deploy $NETLIFY_AUTH $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE"; rc=$?; if [[ $rc != 0 ]]