Skip to content

Instantly share code, notes, and snippets.

@sebalopez
Created September 16, 2020 13:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebalopez/94806272e5d0018671dd2c572f233f7e to your computer and use it in GitHub Desktop.
Save sebalopez/94806272e5d0018671dd2c572f233f7e to your computer and use it in GitHub Desktop.
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