[android, build] Generalize docs deployment script and add Android docs deployment to circle config (#15299)

This commit is contained in:
Dan Swick
2019-09-18 12:44:18 -07:00
committed by GitHub
parent 8805defe57
commit 8bbc4a2178
2 changed files with 13 additions and 2 deletions

View File

@@ -1008,6 +1008,14 @@ jobs:
make run-android-upload-to-artifactory
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: |

View File

@@ -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