Submit to Testflight #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-latest | |
steps: | |
- name: Checkout code with submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: sheenhx/action-flutter-build-ios@v1 | |
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 }} |