Remove --site option
continuous-integration/drone/push Build is passing Details

main
mat ess 2022-12-04 17:43:09 -05:00
parent 0b0dfa9f44
commit 045f85cd2b
1 changed files with 4 additions and 10 deletions

View File

@ -41,16 +41,10 @@ then
NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --debug" NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --debug"
fi fi
if [ -n "$PLUGIN_SITE" ] NETLIFY_AUTH="--auth $PLUGIN_TOKEN"
then echo "> Deploying on Netlify..." &&
NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE" echo "> (Using options $NETLIFY_DEPLOY_OPTIONS)" &&
echo "> Deploying on Netlify…" && netlify deploy $NETLIFY_AUTH $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE";
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
rc=$?; rc=$?;
if [[ $rc != 0 ]] if [[ $rc != 0 ]]