Skip to content

Instantly share code, notes, and snippets.

@sebalopez
Created Sep 16, 2020
Embed
What would you like to do?
iOS Fastfile release lane
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