From 722dbfa11f9f03d33ee21eaa460feee9fcc4c7d9 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 23 Oct 2025 15:48:44 -0500 Subject: [PATCH] chore: gha ios release | take 3 (#23200) --- mobile/ios/fastlane/Fastfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mobile/ios/fastlane/Fastfile b/mobile/ios/fastlane/Fastfile index 04c2087e3d..3bf0d8345f 100644 --- a/mobile/ios/fastlane/Fastfile +++ b/mobile/ios/fastlane/Fastfile @@ -21,6 +21,13 @@ platform :ios do # Setup CI environment setup_ci + # Load App Store Connect API Key + api_key = app_store_connect_api_key( + key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"], + issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"], + key_filepath: "api_key.json" + ) + # Import certificate and provisioning profile import_certificate( certificate_path: "certificate.p12", @@ -42,7 +49,10 @@ platform :ios do # Increment build number increment_build_number( - build_number: latest_testflight_build_number + 1, + build_number: latest_testflight_build_number( + api_key: api_key, + app_identifier: "app.alextran.immich" + ) + 1, xcodeproj: "./Runner.xcodeproj" ) @@ -60,7 +70,7 @@ platform :ios do # Upload to TestFlight upload_to_testflight( - api_key_path: "api_key.json", + api_key: api_key, skip_waiting_for_build_processing: true ) end