forked from eatvio/eatvio_app
fix(ci/cd): test-flight
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
||||
run: |
|
||||
if security list-keychains | grep -q "signing_temp.keychain"; then
|
||||
security delete-keychain signing_temp.keychain
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Import code sign
|
||||
uses: mso7nueh/import-codesign-certs@v1
|
||||
@@ -26,6 +26,14 @@ jobs:
|
||||
p12-file-base64: ${{ vars.CERTIFICATES_FILE_BASE64 }}
|
||||
p12-password: ${{ vars.CERTIFICATES_PASSWORD }}
|
||||
|
||||
- name: Unlock keychain
|
||||
run: |
|
||||
security unlock-keychain -p ${{ vars.CERTIFICATES_PASSWORD }} ${{ runner.temp }}/signing_temp.keychain
|
||||
|
||||
- name: List keychains to verify
|
||||
run: |
|
||||
security list-keychains
|
||||
|
||||
- name: Download provisioning
|
||||
uses: mso7nueh/apple-provisioning-profiles-downloader@v1.0.8
|
||||
with:
|
||||
@@ -35,9 +43,21 @@ jobs:
|
||||
api-key-id: ${{ vars.APPSTORE_KEY_ID }}
|
||||
api-private-key: ${{ vars.APPSTORE_PRIVATE_KEY }}
|
||||
|
||||
- run: |
|
||||
chmod +x ./Build-tf
|
||||
./Build-tf
|
||||
- name: Build with Flutter
|
||||
run: |
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter pub upgrade
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
flutter build ipa --export-options-plist=Support/ExportOptions.plist --release
|
||||
|
||||
- name: Sign Flutter framework manually (if needed)
|
||||
run: |
|
||||
find build/ios/archive/Runner.xcarchive/Products/Applications/Runner.app/Frameworks \
|
||||
-type d -name "*.framework" \
|
||||
-exec codesign --force --sign "Apple Distribution: ITVIO, OOO (VL68C36HYS)" \
|
||||
--timestamp=none \
|
||||
--preserve-metadata=identifier,entitlements {} \;
|
||||
|
||||
- name: Upload to TestFlight
|
||||
uses: mso7nueh/upload-testflight-build@master
|
||||
@@ -45,4 +65,4 @@ jobs:
|
||||
app-path: ./build/ios/ipa/eatvio_app.ipa
|
||||
issuer-id: ${{ vars.APPSTORE_ISSUER_ID }}
|
||||
api-key-id: ${{ vars.APPSTORE_KEY_ID }}
|
||||
api-private-key: ${{ vars.APPSTORE_PRIVATE_KEY }}
|
||||
api-private-key: ${{ vars.APPSTORE_PRIVATE_KEY }}
|
||||
|
||||
14
Build-tf
14
Build-tf
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter pub upgrade
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
|
||||
flutter build ipa --export-options-plist=Support/ExportOptions.plist --release --no-codesign
|
||||
|
||||
codesign -s "Apple Distribution: ITVIO, OOO (TEAM_ID)" --force --deep --preserve-metadata=entitlements build/ios/ipa/eatvio_app.ipa
|
||||
@@ -16,7 +16,7 @@
|
||||
<key>signingStyle</key>
|
||||
<string>manual</string>
|
||||
<key>signingCertificate</key>
|
||||
<string>Apple Distribution</string>
|
||||
<string>Apple Distribution: ITVIO, OOO (VL68C36HYS)</string>
|
||||
<key>stripSwiftSymbols</key>
|
||||
<true/>
|
||||
<key>uploadSymbols</key>
|
||||
|
||||
Reference in New Issue
Block a user