Merge pull request #1925 from marcosnils/fix/netlify_action

Change prod flag to avoid erros on new projects
This commit is contained in:
Andrea Luzzardi
2022-03-29 11:46:59 -07:00
committed by GitHub

View File

@@ -15,6 +15,7 @@ create_site() {
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then
>&2 echo "Error creating site [${NETLIFY_SITE_NAME}] for account [${NETLIFY_ACCOUNT}]"
cat body >&2
exit 1
fi
@@ -47,7 +48,7 @@ netlify link --id "$site_id"
netlify deploy \
--build \
--site="$site_id" \
--prodIfUnlocked |
--prod |
tee /tmp/stdout
url="$(grep </tmp/stdout Website | grep -Eo 'https://[^ >]+' | head -1)"