Last active
October 5, 2018 17:09
-
-
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
This file contains hidden or 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
| 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