From e0dbd33f006a5dc77ce8572484effac9b2a9dc72 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Wed, 14 Jan 2026 16:42:54 +0100 Subject: [PATCH] ios: add workflow for publishing app to TestFlight (#4052) --- .github/workflows/ios-testapp-release.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ios-testapp-release.yml diff --git a/.github/workflows/ios-testapp-release.yml b/.github/workflows/ios-testapp-release.yml new file mode 100644 index 000000000..cd1a9be88 --- /dev/null +++ b/.github/workflows/ios-testapp-release.yml @@ -0,0 +1,27 @@ +on: + workflow_dispatch: + +jobs: + ios-testapp-release: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup certificate + run: | + echo "${{ secrets.IOS_DISTRIBUTION_CERTIFICATE }}" | base64 --decode > platform/ios/app-swift/MapLibre.mobileprovision + + - name: Update BUILD.bazel + run: | + sed -i '' 's/xcode_profile/:MapLibre.mobileprovision/' platform/ios/app-swift/BUILD.bazel + + - name: Build + run: bazel build //platform/ios/app-swift:MapLibreApp -c opt --ios_multi_cpus=arm64 --//:renderer=metal --action_env=SENTRY_DSN=${{ vars.SENTRY_DSN_IOS }} + + - name: 'Upload app to TestFlight' + uses: apple-actions/upload-testflight-build@v3 + with: + app-path: 'bazel-bin/platform/ios/app-swift/MapLibreApp.ipa' + issuer-id: ${{ vars.APPSTORE_ISSUER_ID }} + api-key-id: ${{ vars.APPSTORE_API_KEY_ID }} + api-private-key: ${{ secrets.APP_STORE_CONNECT_API_KEY }}