Skip to content

Submit to Testflight #14

Submit to Testflight

Submit to Testflight #14

Workflow file for this run

name: Submit to Testflight
on:
workflow_dispatch: # Only manual trigger
jobs:
build-macos:
name: Build-testflight
if: github.ref == 'refs/heads/pre_main_qa'
runs-on: macos-15
steps:
- name: Select Xcode version 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app
- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive
- uses: sheenhx/action-flutter-build-ios@main
with:
# always use --export-options-plist=ios/GithubActionsExportOptions.plist
build-cmd: flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist
certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }}
certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }}
provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }}
keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }}
- name: Archive IPA
uses: actions/upload-artifact@v4
with:
name: release-ipa
# Try running the build locally with the build command to be sure of this path
path: build/ios/ipa/*.ipa
- name: "Upload app to TestFlight"
uses: henrik1/upload-testflight@v2
with:
app-path: "build/ios/ipa/moonchain.ipa"
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}