xster 5b46e0a4be
Let Travis build the gallery and push to TestFlight / Play Store (#14408)
* iOS works

* Works on Android

* Take in commit number in iOS also. Get rid of image upload for Android. It's just a waste of bandwidth

* Tweak to fix on Travis
2018-02-05 12:00:24 -08:00

21 lines
643 B
Ruby

# Prevent Fastlane from overwriting README.md
skip_docs
default_platform(:android)
# This should be run after running
# flutter build apk --release
# to build the app using the Flutter toolchain.
platform :android do
desc 'Push the built release APK to alpha or beta depending on current branch'
lane :deploy_play_store do
upload_to_play_store(
track: ENV['TRAVIS_BRANCH'] == 'beta' ? 'beta' : 'alpha',
apk: '../build/app/outputs/apk/release/app-release.apk',
json_key_data: ENV['GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE'],
skip_upload_screenshots: true,
skip_upload_images: true
)
end
end