@@ -172,7 +172,7 @@ platform :ios do
172
172
lane :code_freeze do |options |
173
173
ios_codefreeze_prechecks ( options )
174
174
175
- ios_bump_version_release ( skip_glotpress : true )
175
+ ios_bump_version_release ( skip_glotpress : true , skip_deliver : true )
176
176
new_version = ios_get_app_version
177
177
extract_release_notes_for_version (
178
178
version : new_version ,
@@ -585,6 +585,32 @@ platform :ios do
585
585
)
586
586
end
587
587
588
+ # Upload the localized metadata (from `fastlane/metadata/`) to App Store Connect
589
+ #
590
+ # @option [Boolean] with_screenshots (default: false) If true, will also upload the latest screenshot files to ASC
591
+ #
592
+ desc 'Upload the localized metadata to App Store Connect, optionally including screenshots.'
593
+ lane :update_metadata_on_app_store_connect do |options |
594
+ # Skip screenshots by default. The naming is "with" to make it clear that
595
+ # callers need to opt-in to adding screenshots. The naming of the deliver
596
+ # (upload_to_app_store) parameter, on the other hand, uses the skip verb.
597
+ with_screenshots = options . fetch ( :with_screenshots , false )
598
+ skip_screenshots = !with_screenshots
599
+
600
+ upload_to_app_store (
601
+ app_identifier : APP_STORE_VERSION_BUNDLE_IDENTIFIER ,
602
+ app_version : ios_get_app_version ,
603
+ team_id : '299112' ,
604
+ skip_binary_upload : true ,
605
+ screenshots_path : File . join ( FASTLANE_DIR , 'promo_screenshots' ) ,
606
+ skip_screenshots : skip_screenshots ,
607
+ overwrite_screenshots : true , # won't have effect if `skip_screenshots` is true
608
+ phased_release : true ,
609
+ precheck_include_in_app_purchases : false ,
610
+ api_key_path : ASC_KEY_PATH
611
+ )
612
+ end
613
+
588
614
#####################################################################################
589
615
# register_new_device
590
616
# -----------------------------------------------------------------------------------
0 commit comments