Last active
April 16, 2021 16:51
-
-
Save fguchelaar/ba654ec656591e0417ee2b3aafa5109f to your computer and use it in GitHub Desktop.
tvOS - Fastfile
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
default_platform(:tvos) | |
platform :tvos do | |
desc "Push a new build to TestFlight" | |
lane :beta do | |
changelog = File.read("../Changelog-tvOS.txt") | |
puts "Using changelog:" | |
puts "\n\n" + changelog | |
if prompt(text: "Is the changelog ok?", boolean: true) | |
# ensure we have a cert and profile | |
cert | |
sigh(platform: 'tvos') | |
build_number = latest_testflight_build_number(platform: 'appletvos') + 1 | |
increment_build_number(build_number: build_number) | |
build_app(scheme: "tvOS Application", include_bitcode: true) | |
upload_to_testflight( | |
changelog: changelog, | |
app_platform: 'appletvos' | |
) | |
else | |
puts "Update Changelog.txt and try again!" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment