diff options
-rw-r--r-- | circle.yml | 11 | ||||
-rwxr-xr-x | scripts/trigger-maps-documentation-deploy-steps.sh (renamed from platform/ios/scripts/trigger-external-deploy-steps.sh) | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/circle.yml b/circle.yml index fb3956f256..2d1e7e3f73 100644 --- a/circle.yml +++ b/circle.yml @@ -1009,6 +1009,14 @@ jobs: fi fi - run: + name: Trigger external deploy steps + command: | + export VERSION_TAG=${CIRCLE_TAG} + export GITHUB_TOKEN=${DANGER_GITHUB_API_TOKEN} + export DOCS_REPO="android-docs" + scripts/trigger-maps-documentation-deploy-steps.sh + background: true + - run: name: Record size command: platform/android/scripts/metrics.sh # ------------------------------------------------------------------------------ @@ -1447,7 +1455,8 @@ jobs: command: | export VERSION_TAG=${CIRCLE_TAG} export GITHUB_TOKEN=${DANGER_GITHUB_API_TOKEN} - platform/ios/scripts/trigger-external-deploy-steps.sh + export DOCS_REPO="ios-sdk" + scripts/trigger-maps-documentation-deploy-steps.sh - run: name: Build, package, and upload iOS release command: | diff --git a/platform/ios/scripts/trigger-external-deploy-steps.sh b/scripts/trigger-maps-documentation-deploy-steps.sh index c1ee7c783f..128b7cda8b 100755 --- a/platform/ios/scripts/trigger-external-deploy-steps.sh +++ b/scripts/trigger-maps-documentation-deploy-steps.sh @@ -10,6 +10,7 @@ SDK_FLAVOR=${SDK_FLAVOR:-"maps"} step "Triggering automated site and documentation generation for ${SDK_FLAVOR} SDK ${VERSION_TAG}" +# No branch specified, so default branch will be used request_body="{ \"request\": { \"message\": \"[${SDK_FLAVOR}] ${VERSION_TAG} automated site and documentation generation\", @@ -25,10 +26,11 @@ request_body="{ step "Making request…" +# Request URL set to docs-sandbox while testing curl -s -X POST \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H "Travis-API-Version: 3" \ -H "Authorization: token ${TRAVISCI_API_TOKEN}" \ -d "${request_body}" \ - https://api.travis-ci.com/repo/mapbox%2Fios-sdk/requests + https://api.travis-ci.com/repo/mapbox%2F${DOCS_REPO}/requests |