You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fastlane/Fastfile
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -220,7 +220,19 @@ platform :ios do
220
220
221
221
desc"Download App Store or Ad-Hoc provisioning profiles"
222
222
private_lane:build_releasedo |options|
223
-
UI.user_error!("'APPLE_ID' environment variable should be set to use this lane")unless !ENV["APPLE_ID"].to_s.empty?
223
+
ifis_ci
224
+
UI.user_error!("'APPSTORECONNECT_KEY_ID' environment variable should be set to use this lane")unless !ENV["APPSTORECONNECT_KEY_ID"].to_s.empty?
225
+
UI.user_error!("'APPSTORECONNECT_KEY_ISSUER_ID' environment variable should be set to use this lane")unless !ENV["APPSTORECONNECT_KEY_ISSUER_ID"].to_s.empty?
226
+
UI.user_error!("'APPSTORECONNECT_KEY_CONTENT' environment variable should be set to use this lane")unless !ENV["APPSTORECONNECT_KEY_CONTENT"].to_s.empty?
227
+
228
+
app_store_connect_api_key(
229
+
key_id: ENV["APPSTORECONNECT_KEY_ID"],
230
+
issuer_id: ENV["APPSTORECONNECT_KEY_ISSUER_ID"],
231
+
key_content: ENV["APPSTORECONNECT_KEY_CONTENT"]
232
+
)
233
+
else
234
+
UI.user_error!("'APPLE_ID' environment variable should be set to use this lane")unless !ENV["APPLE_ID"].to_s.empty?
235
+
end
224
236
225
237
build_number=options[:build_number]
226
238
UI.user_error!("'build_number' parameter is missing")unless !build_number.to_s.empty?
0 commit comments