Create APK's in deployToServer- and deployToFDroid-lane for GitHub
This commit is contained in:
parent
2452ddb5a2
commit
0c3671e747
@ -28,9 +28,8 @@ platform :android do |options|
|
||||
FileUtils.cp(release_note_path_en, "metadata/android/fr-FR/changelogs/default.txt")
|
||||
|
||||
deployToPlaystore(beta:options[:beta])
|
||||
|
||||
if options[:beta]
|
||||
puts "Skipping deployment to server cause there isn't currently a beta channel"
|
||||
deployToServer(beta:options[:beta])
|
||||
deployToFDroid(beta:options[:beta])
|
||||
|
||||
slack(
|
||||
default_payloads: [], # reduce the notification to the minimum
|
||||
@ -39,19 +38,6 @@ platform :android do |options|
|
||||
"Changes" => File.read(release_note_path_en)
|
||||
}
|
||||
)
|
||||
else
|
||||
deployToServer(beta:options[:beta])
|
||||
deployToFDroid(beta:options[:beta])
|
||||
|
||||
slack(
|
||||
default_payloads: [], # reduce the notification to the minimum
|
||||
message: ":rocket: Successfully deployed #{version} with code #{build} to the Play Store and APK store :cryptomator:",
|
||||
payload: {
|
||||
"Changes" => File.read(release_note_path_en)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
desc "Deploy new version to Play Store"
|
||||
@ -134,6 +120,9 @@ platform :android do |options|
|
||||
latest_version_jsn.write(token)
|
||||
latest_version_jsn.close
|
||||
|
||||
if options[:beta]
|
||||
puts "Skipping deployment to server cause there isn't currently a beta channel"
|
||||
else
|
||||
puts "Uploading APK and release note"
|
||||
|
||||
aws_s3(
|
||||
@ -167,6 +156,7 @@ platform :android do |options|
|
||||
skip_html_upload: true,
|
||||
apk: ''
|
||||
)
|
||||
end
|
||||
|
||||
FileUtils.mv("release/Cryptomator-#{version}.apk", "release/Cryptomator-#{version}_signed.apk")
|
||||
end
|
||||
@ -190,12 +180,4 @@ platform :android do |options|
|
||||
|
||||
FileUtils.cp(lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH], "release/Cryptomator-#{version}_fdroid_signed.apk")
|
||||
end
|
||||
|
||||
after_all do |lane|
|
||||
#error do |lane, exception|
|
||||
# slack(
|
||||
# message: exception.message,
|
||||
# success:false
|
||||
# )
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user