-
-
Save sebalopez/94806272e5d0018671dd2c572f233f7e to your computer and use it in GitHub Desktop.
iOS Fastfile release lane
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
lane :publish_appstore do |options| | |
changelog_from_git_commits( | |
pretty: "- (%ae) %s",# Optional, lets you provide a custom format to apply to each commit when generating the changelog text | |
date_format: "short",# Optional, lets you provide an additional date format to dates within the pretty-formatted string | |
match_lightweight_tag: false, # Optional, lets you ignore lightweight (non-annotated) tags when searching for the last tag | |
merge_commit_filtering: "exclude_merges" # Optional, lets you filter out merge commits | |
) | |
upload_to_testflight( | |
skip_waiting_for_build_processing: true | |
) | |
version = get_info_plist_value( | |
path: options[:scheme]+"-Info.plist", | |
key: "CFBundleShortVersionString" | |
) | |
build = get_info_plist_value( | |
path: options[:scheme]+"-Info.plist", | |
key: "CFBundleVersion" | |
) | |
slack( | |
message: "Hi! A new iOS "+options[:scheme]+" build has been submitted to TestFlight", | |
payload: { | |
"Build Date" => Time.new.to_s, | |
"Release Version" => version+"."+build | |
}, | |
channel: slack_channel, | |
slack_url: slack_url, | |
use_webhook_configured_username_and_icon: true, | |
fail_on_error: false, | |
success: true | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment