forked from MXCzkEVM/datadash-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.48 KB
/
testflight.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 }}