netlify CLI outputs "Website Draft URL" now instead of "Live Draft URL" (#7676)

This commit is contained in:
Alvin Huang 2020-04-20 15:57:34 -04:00 committed by GitHub
parent c4123791a9
commit 66ae2e1e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,10 +9,10 @@ export PATH=$PATH:$(npm bin)
# Deploy site to netlify
# Assumes NETLIFY_SITE_ID and NETLIFY_AUTH_TOKEN env variables are set
output=$(netlify deploy --dir=./website/build)
output=$(netlify deploy --dir=./website/build --json)
# Grab deploy URL
url=$(echo "$output" | grep "Live Draft URL" | sed -E 's/.*(https:\/\/.*$)/\1/')
url=$(echo "$output" | jq --raw-output '.deploy_url')
# Checks broken links
wget \