Created
May 4, 2016 06:14
-
-
Save yeradis/6db8730d615c0a45aa623794a5cd4ca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private_lane :upload_itunes do |options| | |
# Make sure we don't have any uncommited changes | |
ensure_git_status_clean | |
ensure_git_branch( | |
branch: "(master|release\\S+|hotfix\\S+)" | |
) | |
increment_build_number( | |
xcodeproj:app_config[:app_project_path] | |
) #increments the build number (an integer), | |
#the marketing number must be set manually | |
build_release(scheme:options[:scheme]) | |
deliver( | |
force:true, | |
automatic_release: true, | |
submit_for_review: false, | |
metadata_path: options[:metadata_path], | |
skip_metadata: false, | |
skip_screenshots: true, | |
) | |
commit_version_bump( | |
message: "Version bump to v#{versionFromScheme(scheme:options[:scheme])}", | |
xcodeproj: app_config[:app_project_path], | |
) | |
add_git_tag tag: versionFromScheme(scheme:options[:scheme]) | |
push_to_git_remote | |
toast(message:"Done! version v#{versionFromScheme(scheme:options[:scheme])} sent to iTunes Connect!") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment