@@ -585,6 +585,31 @@ 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
+ skip_binary_upload : true ,
604
+ screenshots_path : File . join ( FASTLANE_DIR , 'promo_screenshots' ) ,
605
+ skip_screenshots : skip_screenshots ,
606
+ overwrite_screenshots : true , # won't have effect if `skip_screenshots` is true
607
+ phased_release : true ,
608
+ precheck_include_in_app_purchases : false ,
609
+ api_key_path : ASC_KEY_PATH
610
+ )
611
+ end
612
+
588
613
#####################################################################################
589
614
# register_new_device
590
615
# -----------------------------------------------------------------------------------
0 commit comments