Revert "Remove --site option"
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This reverts commit 045f85cd2b
.
main
parent
045f85cd2b
commit
c5513a13c3
14
script.sh
14
script.sh
|
@ -41,10 +41,16 @@ then
|
||||||
NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --debug"
|
NETLIFY_DEPLOY_OPTIONS="${NETLIFY_DEPLOY_OPTIONS} --debug"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NETLIFY_AUTH="--auth $PLUGIN_TOKEN"
|
if [ -n "$PLUGIN_SITE" ]
|
||||||
echo "> Deploying on Netlify..." &&
|
then
|
||||||
echo "> (Using options $NETLIFY_DEPLOY_OPTIONS)" &&
|
NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE"
|
||||||
netlify deploy $NETLIFY_AUTH $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE";
|
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
|
||||||
|
|
||||||
rc=$?;
|
rc=$?;
|
||||||
if [[ $rc != 0 ]]
|
if [[ $rc != 0 ]]
|
||||||
|
|
Loading…
Reference in New Issue