Add TestFlight group selection to iOS build workflow (#10979)
This commit is contained in:
@@ -10,20 +10,24 @@ on:
|
|||||||
options:
|
options:
|
||||||
- testflight
|
- testflight
|
||||||
- production
|
- production
|
||||||
assignTestFlightGroup:
|
testFlightGroup:
|
||||||
type: boolean
|
type: choice
|
||||||
description: Assign the build to the "QA Team" TestFlight group after submitting
|
description: TestFlight group to assign the build to after submitting
|
||||||
default: false
|
options:
|
||||||
|
- none
|
||||||
|
- QA Team
|
||||||
|
- Software Mansion
|
||||||
|
default: none
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
profile:
|
profile:
|
||||||
type: string
|
type: string
|
||||||
description: Build profile to use
|
description: Build profile to use
|
||||||
required: true
|
required: true
|
||||||
assignTestFlightGroup:
|
testFlightGroup:
|
||||||
type: boolean
|
type: string
|
||||||
description: Assign the build to the "QA Team" TestFlight group after submitting
|
description: TestFlight group to assign the build to after submitting ("none" to skip)
|
||||||
default: false
|
default: none
|
||||||
outputs:
|
outputs:
|
||||||
package-version:
|
package-version:
|
||||||
description: Version from package.json
|
description: Version from package.json
|
||||||
@@ -212,8 +216,9 @@ jobs:
|
|||||||
# TestFlight group. fastlane's distribute_only mode skips the upload and assigns the
|
# TestFlight group. fastlane's distribute_only mode skips the upload and assigns the
|
||||||
# already-submitted build to the group, polling until Apple finishes processing it.
|
# already-submitted build to the group, polling until Apple finishes processing it.
|
||||||
- name: 🧪 Assign build to TestFlight group
|
- name: 🧪 Assign build to TestFlight group
|
||||||
if: ${{ inputs.assignTestFlightGroup }}
|
if: ${{ inputs.testFlightGroup != 'none' }}
|
||||||
env:
|
env:
|
||||||
|
TESTFLIGHT_GROUP: ${{ inputs.testFlightGroup }}
|
||||||
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
|
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
|
||||||
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
||||||
ASC_KEY_P8_BASE64: ${{ secrets.ASC_KEY_P8_BASE64 }}
|
ASC_KEY_P8_BASE64: ${{ secrets.ASC_KEY_P8_BASE64 }}
|
||||||
@@ -241,7 +246,7 @@ jobs:
|
|||||||
app_identifier:"xyz.blueskyweb.app" \
|
app_identifier:"xyz.blueskyweb.app" \
|
||||||
app_version:"$APP_VERSION" \
|
app_version:"$APP_VERSION" \
|
||||||
build_number:"$BUILD_NUMBER" \
|
build_number:"$BUILD_NUMBER" \
|
||||||
groups:"QA Team" \
|
groups:"$TESTFLIGHT_GROUP" \
|
||||||
notify_external_testers:true
|
notify_external_testers:true
|
||||||
|
|
||||||
- name: 🔔 Notify Slack of Production Build
|
- name: 🔔 Notify Slack of Production Build
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ jobs:
|
|||||||
uses: ./.github/workflows/build-submit-ios.yml
|
uses: ./.github/workflows/build-submit-ios.yml
|
||||||
with:
|
with:
|
||||||
profile: testflight
|
profile: testflight
|
||||||
assignTestFlightGroup: true
|
testFlightGroup: "QA Team"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
android:
|
android:
|
||||||
|
|||||||
Reference in New Issue
Block a user