Skip to content

Commit d2482c9

Browse files
committed
feat: configure testflight provision
1 parent 36ee02e commit d2482c9

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/build_ios_testflight.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,27 @@ jobs:
2929
# Step 4: Install dependencies
3030
- name: Install dependencies
3131
run: flutter pub get
32+
33+
# Step 5: Export mobileprovision file
34+
- name: Export mobileprovision file
35+
run: echo "$MOBILEPROVISION" | base64 --decode > /ios/fastlane/vietmap.mobileprovision
36+
env:
37+
MOBILEPROVISION: ${{ secrets.MOBILEPROVISION }}
38+
39+
# Step 6: Export configuration file
40+
- name: Export configuration file
41+
run: |
42+
echo "$EXPORT_CONFIGURATION" > /ios/fastlane/export_options.plist
3243
33-
# Step 5: Build iOS app
44+
# Step 7: Build iOS app
3445
- name: Build iOS
35-
run: flutter build ipa --release
46+
run: flutter build ipa --release --export-options-plist=ios/fastlane/export_options.plist
3647

37-
# Step 6: Install fastlane
48+
# Step 8: Install fastlane
3849
- name: Install fastlane
3950
run: sudo gem install fastlane
4051

41-
# Step 7: Create fastlane App Store Connect API key file
52+
# Step 9: Create fastlane App Store Connect API key file
4253
- name: Create API key for App Store Connect
4354
run: |
4455
echo "{
@@ -47,17 +58,17 @@ jobs:
4758
\"key\": \"$APP_STORE_CONNECT_API_KEY\"
4859
}" > fastlane/AuthKey.p8
4960
50-
# Step 7: Create fastlane Fastfile
61+
# Step 10: Create fastlane Fastfile
5162
- name: Create Fastfile for fastlane
5263
run: |
5364
echo "$FASTFILE" > fastlane/Fastfile
5465
55-
# Step 8: Create fastlane Appfile
66+
# Step 11: Create fastlane Appfile
5667
- name: Create Appfile for fastlane
5768
run: |
5869
echo "$APPFILE" > fastlane/Appfile
5970
60-
# Step 8: Upload to TestFlight using fastlane
71+
# Step 12: Upload to TestFlight using fastlane
6172
- name: Upload to TestFlight
6273
run: |
6374
fastlane pilot upload \

0 commit comments

Comments
 (0)