From 2ab838925141fe0ef9b80b1e6c0919bfaeab2fed Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Tue, 18 Mar 2025 17:04:21 +0300 Subject: [PATCH 1/3] feat: build tf upd 5 --- .gitea/workflows/test-flight-cd.yaml | 60 +++++++++++++++++++--------- 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/test-flight-cd.yaml b/.gitea/workflows/test-flight-cd.yaml index aac2d858..33ec4733 100644 --- a/.gitea/workflows/test-flight-cd.yaml +++ b/.gitea/workflows/test-flight-cd.yaml @@ -1,4 +1,5 @@ -name: "Build Test Flight" +name: "Flutter Build & TestFlight Upload" + on: pull_request: branches: @@ -6,25 +7,31 @@ on: jobs: build: - runs-on: [macos-arm64] + runs-on: macos-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v3 - - name: Delete existing keychain if present + - name: Install dependencies + run: flutter pub get + + - name: Build iOS App run: | - if security list-keychains | grep -q "signing_temp.keychain"; then - security delete-keychain signing_temp.keychain - fi + flutter build ipa \ + --release \ + --no-codesign - - name: Import code sign - uses: mso7nueh/import-codesign-certs@v1 - with: - p12-file-base64: ${{ secrets.CERTIFICATES_FILE_BASE64 }} - p12-password: ${{ secrets.CERTIFICATES_PASSWORD }} + - 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: Download provisioning - uses: mso7nueh/apple-provisioning-profiles-downloader@v1.0.8 + - name: Download provisioning profiles + uses: apple-actions/download-provisioning-profiles@v1 with: profile-type: IOS_APP_STORE bundle-id: com.eatvioapp.app @@ -32,12 +39,29 @@ jobs: api-key-id: ${{ secrets.APPSTORE_KEY_ID }} api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} - - run: ./Build-tf + - 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 - name: Upload to TestFlight - uses: mso7nueh/upload-testflight-build@master + uses: apple-actions/upload-testflight-build@v1 with: - app-path: .build/Artifacts/EatvioApp.ipa/EatvioApp.ipa + app-path: build/EatvioApp.ipa issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} api-key-id: ${{ secrets.APPSTORE_KEY_ID }} api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} \ No newline at end of file From c6f1d5645f54ba3941437cccc1cbbf75c7f9b82d Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Tue, 18 Mar 2025 17:06:32 +0300 Subject: [PATCH 2/3] feat: build tf upd 6 --- .gitea/workflows/test-flight-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test-flight-cd.yaml b/.gitea/workflows/test-flight-cd.yaml index 33ec4733..8e4fe97e 100644 --- a/.gitea/workflows/test-flight-cd.yaml +++ b/.gitea/workflows/test-flight-cd.yaml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: macos-latest + runs-on: [macos-arm64] steps: - name: Checkout repository uses: actions/checkout@v3 From 3562dca76b69d6d069be784da3aa3facb27ed5d5 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Tue, 18 Mar 2025 17:08:33 +0300 Subject: [PATCH 3/3] feat: build tf upd 7 --- .gitea/workflows/test-flight-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test-flight-cd.yaml b/.gitea/workflows/test-flight-cd.yaml index 33ec4733..8e4fe97e 100644 --- a/.gitea/workflows/test-flight-cd.yaml +++ b/.gitea/workflows/test-flight-cd.yaml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: macos-latest + runs-on: [macos-arm64] steps: - name: Checkout repository uses: actions/checkout@v3