mirror of https://github.com/hashicorp/consul
netlify CLI outputs "Website Draft URL" now instead of "Live Draft URL" (#7676)
parent
115d2d5db5
commit
47832cc81d
|
@ -9,10 +9,10 @@ export PATH=$PATH:$(npm bin)
|
||||||
|
|
||||||
# Deploy site to netlify
|
# Deploy site to netlify
|
||||||
# Assumes NETLIFY_SITE_ID and NETLIFY_AUTH_TOKEN env variables are set
|
# 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
|
# 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
|
# Checks broken links
|
||||||
wget \
|
wget \
|
||||||
|
|
Loading…
Reference in New Issue