Add rework debug
continuous-integration/drone/push Build is passing Details

main
mat ess 2022-10-21 00:09:45 -04:00
parent 4118f27548
commit 56a6269975
1 changed files with 2 additions and 3 deletions

View File

@ -4,8 +4,6 @@ set -e
NETLIFY_SITE="" NETLIFY_SITE=""
NETLIFY_DEPLOY_OPTIONS="" NETLIFY_DEPLOY_OPTIONS=""
echo test
if [ -n "$PLUGIN_PROD" ] && [ "$PLUGIN_PROD" != false ] if [ -n "$PLUGIN_PROD" ] && [ "$PLUGIN_PROD" != false ]
then then
NETLIFY_DEPLOY_OPTIONS="--prod" NETLIFY_DEPLOY_OPTIONS="--prod"
@ -41,7 +39,8 @@ if [ -n "$PLUGIN_SITE" ]
then then
NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE" NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE"
echo "> Deploying on Netlify…" && echo "> Deploying on Netlify…" &&
echo netlify deploy $NETLIFY_SITE $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 else
echo "> Error! site (site ID or name) and token are required" echo "> Error! site (site ID or name) and token are required"
exit 1 exit 1