Skip to content

Commit 31d368e

Browse files
evil159persidskiy
authored andcommitted
Publish API docs to /latest (#7301)
This PR adds publishing API docs for the latest sdk version to the `ios/maps/api/latest`/`android/maps/api/latest` for iOS/Android. Decision logic for doc publishing is encapsulated in `.github/actions/docs/check-latest/action.yml` action. For iOS I duplicated doc building step as there are version-specific paths, we build one doc archive to be hosted under `/xx.xx.xx` path and another for `/latest`. For Android I didn't notice anything version-specific, so the same artifact is uploaded both for `/xx.xx.xx` and `/latest` paths. I also fixed iOS create docs PR script erroring out if the documentation branch already exists(basically on rerun) by skipping PR creation in this case. Addresses: https://mapbox.atlassian.net/browse/MAPSSDK-832 Test runs: New latest `11.999.999` - https://github.com/mapbox/mapbox-sdk/actions/runs/18405591378 Patch `11.14.999` - https://github.com/mapbox/mapbox-sdk/actions/runs/18405626406 Pre-release `11.17.999-beta.1` - https://github.com/mapbox/mapbox-sdk/actions/runs/18405666478 cc @mapbox/maps-ios cc @mapbox/sdk-ci cc @mapbox/maps-android --------- Co-authored-by: Ivan Persidskii <[email protected]> GitOrigin-RevId: d2cde23743855fa384ab29cf11d6923e052373c9
1 parent f71e729 commit 31d368e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/release/create-docs-prs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ ios_sdk_update_versions() {
6666

6767
IOS_SDK_BRANCH_NAME="maps-sdk/ios/${VERSION}"
6868

69+
# Check if branch already exists remotely
70+
if git ls-remote --heads origin "$IOS_SDK_BRANCH_NAME" | grep -q "$IOS_SDK_BRANCH_NAME"; then
71+
info "Branch $IOS_SDK_BRANCH_NAME already exists, skipping creating docs PR."
72+
cleanup 0
73+
fi
74+
6975
git_configure_release_user
7076

7177
git checkout -b "${IOS_SDK_BRANCH_NAME}" --quiet

0 commit comments

Comments
 (0)