Skip to content

Commit 1346e26

Browse files
authored
fix(build): correct versioned doc site cname config (uber#3097)
1 parent 40e7239 commit 1346e26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deploy-versioned-docs.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
set -e
44

5+
56
# deploy to now the versioned docs site
67
FORCE_EXTRACT_REACT_TYPES=true yarn documentation:build
78
now --scope=uber-ui-platform --token=$ZEIT_NOW_TOKEN --public --no-clipboard deploy ./public > deployment.txt
89
deployment=`cat deployment.txt`
9-
cname="${BUILDKITE_TAG//./-}"
10+
version=$(echo $BUILDKITE_MESSAGE | cut -d' ' -f 2)
11+
cname="${version//./-}"
1012
curl -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/dns_records" \
1113
-H "Authorization: Bearer $CF_API_KEY" \
1214
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)