parent
c02be20586
commit
ef10f9b285
|
@ -31,9 +31,9 @@ fi
|
||||||
|
|
||||||
if [ -n "$PLUGIN_SITE_ID" ] && [ -n "$PLUGIN_TOKEN" ]
|
if [ -n "$PLUGIN_SITE_ID" ] && [ -n "$PLUGIN_TOKEN" ]
|
||||||
then
|
then
|
||||||
NETLIFY_SITE="-t $PLUGIN_TOKEN -s $PLUGIN_SITE_ID"
|
NETLIFY_SITE="-a $PLUGIN_TOKEN -s $PLUGIN_SITE_ID"
|
||||||
echo "> Deploying on Netlify…" &&
|
echo "> Deploying on Netlify…" &&
|
||||||
netlify $NETLIFY_SITE deploy $NETLIFY_DEPLOY_OPTIONS;
|
netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS;
|
||||||
else
|
else
|
||||||
echo "> Error! site_id and token are required"
|
echo "> Error! site_id and token are required"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -52,7 +52,7 @@ fi
|
||||||
if [ -n "$PLUGIN_SITE_NAME" ] || [ -n "$PLUGIN_DOMAIN" ]
|
if [ -n "$PLUGIN_SITE_NAME" ] || [ -n "$PLUGIN_DOMAIN" ]
|
||||||
then
|
then
|
||||||
echo "> Updating your Netlify site…" &&
|
echo "> Updating your Netlify site…" &&
|
||||||
netlify $NETLIFY_SITE update $NETLIFY_UPDATE_OPTIONS;
|
netlify $NETLIFY_SITE deploy $NETLIFY_UPDATE_OPTIONS;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rc=$?;
|
rc=$?;
|
||||||
|
|
Loading…
Reference in New Issue