Remy Moll 097abc5f29
Some checks failed
Build and deploy the backend to production / Deploy to production (push) Has been cancelled
Build and deploy the backend to production / Build and push image (push) Has been cancelled
/ push-to-remote (push) Successful in 12s
remove gradle again
2024-09-25 17:49:08 +02:00

43 lines
907 B
Ruby

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:android)
platform :android do
desc "Deploy a new version as a preview version"
lane :deploy_testing do
version_name = ENV["VERSION_NAME"]
sh(
"flutter",
"build",
"appbundle",
"--release",
"--build-name=#{version_name}",
)
upload_to_play_store(
track: 'alpha',
skip_upload_apk: true,
skip_upload_changelogs: true,
)
end
desc "Deploy a new version as a full release"
lane :deploy_release do
gradle(
task: "clean assembleRelease",
properties: {
# loaded from environment
"android.injected.version.name" => ENV["VERSION_NAME"],
}
)
upload_to_play_store(
track: "production",
skip_upload_apk: true,
skip_upload_changelogs: true,
)
end
end