Skip to content

Instantly share code, notes, and snippets.

@GantMan
Last active October 5, 2018 17:09
Show Gist options
  • Select an option

  • Save GantMan/e662bfeed153dd4c4f97e6a68b7acc61 to your computer and use it in GitHub Desktop.

Select an option

Save GantMan/e662bfeed153dd4c4f97e6a68b7acc61 to your computer and use it in GitHub Desktop.
Latest version of fastlane has new commands for my blog post on simple react native ios releases
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
# UI.important "Important Message"
# UI.error "O NO!"
# UI.message "Basic blah"
answer = UI.select("Would you like to add a Changelog?", ["Yes", "No"])
changelog = ask('Type Changelog message:') if answer == "Yes"
# Get latest certs appstore
match(type: 'appstore')
increment_build_number(xcodeproj: "AppName.xcodeproj")
build_app(scheme: "AppNameApp")
if changelog
upload_to_testflight(changelog: changelog)
else
upload_to_testflight
end
slack(
message: "App successfully released",
channel: "#myAppChannel"
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment