Use matrix for public_beta and app_review

A tolerant way to cope with scattered approvals. That is, if a
platform build fails to upload, it will not prevent other
platforms from being sent to public_beta/app_review.

The app_store environment is also allowed despite errors, as the
platform builds may have been approved at different times.

This somehow deals with the lottery of getting an approval for
multiple platforms at the same time.

Fixes #1043
This commit is contained in:
Davide 2024-12-24 09:05:39 +01:00
parent 4052a41d6b
commit df64f8cabb
No known key found for this signature in database
GPG Key ID: A48836171C759F5E

View File

@ -71,6 +71,11 @@ jobs:
name: Distribute Public Beta
runs-on: ubuntu-latest
needs: [run_tests, build_upload]
continue-on-error: true
strategy:
fail-fast: true
matrix:
platform: ["iOS", "macOS", "tvOS"]
environment:
name: public_beta
steps:
@ -85,13 +90,16 @@ jobs:
PILOT_GROUPS: ${{ vars.PILOT_GROUPS }}
PILOT_NOTIFY_EXTERNAL_TESTERS: ${{ vars.PILOT_NOTIFY_EXTERNAL_TESTERS }}
run: |
for PLATFORM in ${PLATFORMS[@]}; do
bundle exec fastlane --env $PLATFORM public_beta
done
bundle exec fastlane --env ${{ matrix.platform }} public_beta
submit_for_app_review:
name: Submit to App Review
runs-on: ubuntu-latest
needs: [run_tests, build_upload]
continue-on-error: true
strategy:
fail-fast: true
matrix:
platform: ["iOS", "macOS", "tvOS"]
environment:
name: app_review
env:
@ -105,9 +113,7 @@ jobs:
bundler-cache: true
- name: Submit for App Review
run: |
for PLATFORM in ${PLATFORMS[@]}; do
bundle exec fastlane --env $PLATFORM asc_review
done
bundle exec fastlane --env ${{ matrix.platform }} asc_review
publish_to_app_store:
name: Publish to App Store
runs-on: ubuntu-latest