forked from eatvio/eatvio_app
feat: upd tf
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
name: "Flutter Build & TestFlight Upload"
|
||||
|
||||
name: "Build Test Flight"
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
@@ -9,29 +8,26 @@ jobs:
|
||||
build:
|
||||
runs-on: [macos-arm64]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build iOS App
|
||||
- name: Delete existing keychain if present
|
||||
run: |
|
||||
flutter build ipa \
|
||||
--release \
|
||||
--no-codesign
|
||||
if security list-keychains | grep -q "signing_temp.keychain"; then
|
||||
security delete-keychain signing_temp.keychain
|
||||
fi
|
||||
|
||||
- name: Setup keychain and provisioning profiles
|
||||
run: |
|
||||
security create-keychain -p "" signing_temp.keychain
|
||||
security default-keychain -s signing_temp.keychain
|
||||
security unlock-keychain -p "" signing_temp.keychain
|
||||
echo "${{ secrets.CERTIFICATES_FILE_BASE64 }}" | base64 --decode > certs.p12
|
||||
security import certs.p12 -P "${{ secrets.CERTIFICATES_PASSWORD }}" -A
|
||||
rm -f certs.p12
|
||||
- name: Import code sign
|
||||
uses: mso7nueh/import-codesign-certs@v1
|
||||
env:
|
||||
KEYCHAIN_PATH: ${{ runner.temp }}/signing_temp.keychain
|
||||
with:
|
||||
keychain-path: ${{ env.KEYCHAIN_PATH }}
|
||||
p12-file-base64: ${{ secrets.CERTIFICATES_FILE_BASE64 }}
|
||||
p12-password: ${{ secrets.CERTIFICATES_PASSWORD }}
|
||||
|
||||
- name: Download provisioning profiles
|
||||
uses: apple-actions/download-provisioning-profiles@v1
|
||||
- name: Download provisioning
|
||||
uses: mso7nueh/apple-provisioning-profiles-downloader@v1.0.8
|
||||
with:
|
||||
profile-type: IOS_APP_STORE
|
||||
bundle-id: com.eatvioapp.app
|
||||
@@ -39,29 +35,12 @@ jobs:
|
||||
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
||||
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
||||
|
||||
- name: Code signing
|
||||
run: |
|
||||
xcodebuild \
|
||||
-workspace ios/Runner.xcworkspace \
|
||||
-scheme Runner \
|
||||
-archivePath build/Runner.xcarchive \
|
||||
-sdk iphoneos \
|
||||
-configuration Release \
|
||||
clean archive \
|
||||
CODE_SIGN_IDENTITY="iPhone Distribution" \
|
||||
PROVISIONING_PROFILE_SPECIFIER="$(ls ~/Library/MobileDevice/Provisioning\ Profiles | head -n 1)"
|
||||
|
||||
- name: Export IPA
|
||||
run: |
|
||||
xcodebuild -exportArchive \
|
||||
-archivePath build/Runner.xcarchive \
|
||||
-exportPath build/ \
|
||||
-exportOptionsPlist ios/exportOptions.plist
|
||||
- run: ./Build-tf
|
||||
|
||||
- name: Upload to TestFlight
|
||||
uses: apple-actions/upload-testflight-build@v1
|
||||
uses: mso7nueh/upload-testflight-build@master
|
||||
with:
|
||||
app-path: build/EatvioApp.ipa
|
||||
app-path: .build/Artifacts/EatvioApp.ipa/EatvioApp.ipa
|
||||
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
|
||||
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
||||
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
||||
1
Build-tf
1
Build-tf
@@ -33,6 +33,7 @@ flutter pub get
|
||||
cd ios
|
||||
rm -rf Pods Podfile.lock
|
||||
pod install --repo-update
|
||||
pod update
|
||||
cd ..
|
||||
|
||||
rm -rf "${RESULT_BUNDLE_PATH}"
|
||||
|
||||
BIN
android/.DS_Store
vendored
Normal file
BIN
android/.DS_Store
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user