feat: upd tf

This commit is contained in:
mso7nueh
2025-03-19 10:58:21 +03:00
parent 3562dca76b
commit 7c40f14364
4 changed files with 21 additions and 41 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -1,5 +1,4 @@
name: "Flutter Build & TestFlight Upload" name: "Build Test Flight"
on: on:
pull_request: pull_request:
branches: branches:
@@ -9,29 +8,26 @@ jobs:
build: build:
runs-on: [macos-arm64] runs-on: [macos-arm64]
steps: steps:
- name: Checkout repository - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v2
- name: Install dependencies - name: Delete existing keychain if present
run: flutter pub get
- name: Build iOS App
run: | run: |
flutter build ipa \ if security list-keychains | grep -q "signing_temp.keychain"; then
--release \ security delete-keychain signing_temp.keychain
--no-codesign fi
- name: Setup keychain and provisioning profiles - name: Import code sign
run: | uses: mso7nueh/import-codesign-certs@v1
security create-keychain -p "" signing_temp.keychain env:
security default-keychain -s signing_temp.keychain KEYCHAIN_PATH: ${{ runner.temp }}/signing_temp.keychain
security unlock-keychain -p "" signing_temp.keychain with:
echo "${{ secrets.CERTIFICATES_FILE_BASE64 }}" | base64 --decode > certs.p12 keychain-path: ${{ env.KEYCHAIN_PATH }}
security import certs.p12 -P "${{ secrets.CERTIFICATES_PASSWORD }}" -A p12-file-base64: ${{ secrets.CERTIFICATES_FILE_BASE64 }}
rm -f certs.p12 p12-password: ${{ secrets.CERTIFICATES_PASSWORD }}
- name: Download provisioning profiles - name: Download provisioning
uses: apple-actions/download-provisioning-profiles@v1 uses: mso7nueh/apple-provisioning-profiles-downloader@v1.0.8
with: with:
profile-type: IOS_APP_STORE profile-type: IOS_APP_STORE
bundle-id: com.eatvioapp.app bundle-id: com.eatvioapp.app
@@ -39,29 +35,12 @@ jobs:
api-key-id: ${{ secrets.APPSTORE_KEY_ID }} api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
- name: Code signing - run: ./Build-tf
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 - name: Upload to TestFlight
uses: apple-actions/upload-testflight-build@v1 uses: mso7nueh/upload-testflight-build@master
with: with:
app-path: build/EatvioApp.ipa app-path: .build/Artifacts/EatvioApp.ipa/EatvioApp.ipa
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_KEY_ID }} api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}

View File

@@ -33,6 +33,7 @@ flutter pub get
cd ios cd ios
rm -rf Pods Podfile.lock rm -rf Pods Podfile.lock
pod install --repo-update pod install --repo-update
pod update
cd .. cd ..
rm -rf "${RESULT_BUNDLE_PATH}" rm -rf "${RESULT_BUNDLE_PATH}"

BIN
android/.DS_Store vendored Normal file

Binary file not shown.