Skip to content

Commit d45255f

Browse files
committed
fix: use key content directly instead of filepath for App Store Connect API
1 parent 158a0d1 commit d45255f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108

109109
- name: Install Fastlane
110110
run: |
111-
gem install fastlane
111+
gem install fastlane -v 2.226.0
112112
gem install xcpretty
113113
114114
- name: Setup SSH for Match repository

fastlane/Fastfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ default_platform(:ios)
55
platform :ios do
66
# Helper method to get App Store Connect API key
77
private_lane :get_api_key do
8+
# Read the key content directly
9+
key_content = File.read(ENV["APP_STORE_CONNECT_API_KEY_KEY"])
10+
811
app_store_connect_api_key(
912
key_id: ENV["APP_STORE_CONNECT_API_KEY_KEY_ID"],
1013
issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"],
11-
key_filepath: ENV["APP_STORE_CONNECT_API_KEY_KEY"],
14+
key: key_content,
1215
in_house: false
1316
)
1417
end

0 commit comments

Comments
 (0)