Wire TestFlight up to mobile releases

This commit is contained in:
Juan José Mata
2026-02-18 10:31:24 +01:00
parent 65f1daa995
commit e9bba43554
4 changed files with 23 additions and 3 deletions

View File

@@ -7,6 +7,12 @@ on:
description: "TestFlight release notes"
required: false
type: string
workflow_call:
inputs:
notes:
description: "TestFlight release notes"
required: false
type: string
push:
tags:
- 'ios-v*'

View File

@@ -15,6 +15,14 @@ jobs:
uses: ./.github/workflows/flutter-build.yml
secrets: inherit
testflight:
name: Upload iOS to TestFlight
needs: [build]
uses: ./.github/workflows/ios-testflight.yml
with:
notes: "Mobile release ${{ github.ref_name }}"
secrets: inherit
release:
name: Create Mobile GitHub Release
needs: [build]

View File

@@ -151,9 +151,9 @@ The app includes automated CI/CD via GitHub Actions (`.github/workflows/flutter-
- **Android Build**: Generates release APK and AAB artifacts
- **iOS Build**: Generates iOS release build (unsigned)
- **Quality Checks**: Code analysis and tests run before building
- **TestFlight**: Use `.github/workflows/ios-testflight.yml` for signed distribution uploads to App Store Connect
- **TestFlight**: `mobile-release` (mobile tags) triggers `.github/workflows/ios-testflight.yml` for signed App Store Connect uploads as part of one release flow
See [mobile/docs/iOS_TESTFLIGHT](mobile/docs/iOS_TESTFLIGHT.md) for required secrets and setup.
See [mobile/docs/iOS_TESTFLIGHT.md](mobile/docs/iOS_TESTFLIGHT.md) for required secrets and setup.
### Downloading Build Artifacts

View File

@@ -9,6 +9,12 @@ This repository now includes `.github/workflows/ios-testflight.yml`, which build
- Bundle ID `am.sure.mobile` (or your custom value in the workflow)
- Flutter assets and source already in `mobile/`
## Trigger paths
- Manual dispatch from the workflow UI.
- Tag push matching `ios-v*`.
- Called from `.github/workflows/mobile-release.yml` after the shared build job, so tagging `mobile-v*` now creates the GitHub release and uploads to TestFlight in one pipeline.
## Required GitHub Secrets
Set these in **Settings → Secrets and variables → Actions**:
@@ -26,7 +32,7 @@ Set these in **Settings → Secrets and variables → Actions**:
- `IOS_PROVISIONING_PROFILE_NAME`
- `IOS_PROVISIONING_PROFILE_BASE64`
> Do **not** commit private keys, `.p12` files, or `.p8` files to the repository.
> Do **not** commit private keys, `.p12`, `.mobileprovision` or `.p8` files to the repository.
## Triggering