mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 22:00:42 -05:00
[PM-9472] Update release notes generated for Firebase (#3664)
This commit is contained in:
@@ -180,37 +180,49 @@ platform :android do
|
||||
|
||||
desc "Publish Release Play Store artifacts to Firebase App Distribution"
|
||||
lane :distributeReleasePlayStoreToFirebase do |options|
|
||||
releaseNotes = generateReleaseNotes(
|
||||
repoName: "android",
|
||||
actionUrl: "#{options[:actionUrl]}"
|
||||
)
|
||||
firebase_app_distribution(
|
||||
app: "1:64530857057:android:f8d67b786db1b844",
|
||||
android_artifact_type: "APK",
|
||||
android_artifact_path: "app/build/outputs/apk/standard/release/com.x8bit.bitwarden-standard-release.apk",
|
||||
service_credentials_file: options[:service_credentials_file],
|
||||
groups: "internal-prod-group, livefront",
|
||||
release_notes: "Native Play Store Release from commit #{sh("git rev-parse --short HEAD")} on branch #{sh("git rev-parse --abbrev-ref HEAD")}",
|
||||
release_notes: "#{releaseNotes}",
|
||||
)
|
||||
end
|
||||
|
||||
desc "Publish Beta Play Store artifacts to Firebase App Distribution"
|
||||
lane :distributeBetaPlayStoreToFirebase do |options|
|
||||
releaseNotes = generateReleaseNotes(
|
||||
repoName: "android",
|
||||
actionUrl: "#{options[:actionUrl]}"
|
||||
)
|
||||
firebase_app_distribution(
|
||||
app: "1:64530857057:android:54c1ae56b269b959887e20",
|
||||
android_artifact_type: "APK",
|
||||
android_artifact_path: "app/build/outputs/apk/standard/beta/com.x8bit.bitwarden-standard-beta.apk",
|
||||
service_credentials_file: options[:service_credentials_file],
|
||||
groups: "internal-prod-group, livefront",
|
||||
release_notes: "Native Play Store Beta from commit #{sh("git rev-parse --short HEAD")} on branch #{sh("git rev-parse --abbrev-ref HEAD")}",
|
||||
release_notes: "#{releaseNotes}",
|
||||
)
|
||||
end
|
||||
|
||||
desc "Publish Release F-Droid artifacts to Firebase App Distribution"
|
||||
lane :distributeReleaseFDroidToFirebase do |options|
|
||||
releaseNotes = generateReleaseNotes(
|
||||
repoName: "android",
|
||||
actionUrl: "#{options[:actionUrl]}"
|
||||
)
|
||||
firebase_app_distribution(
|
||||
app: "1:439897860529:android:b143708734b99c0e3fb590",
|
||||
android_artifact_type: "APK",
|
||||
android_artifact_path: "app/build/outputs/apk/fdroid/release/com.x8bit.bitwarden-fdroid-release.apk",
|
||||
service_credentials_file: options[:service_credentials_file],
|
||||
groups: "internal-prod-group, livefront",
|
||||
release_notes: "Native F-Droid Beta from commit #{sh("git rev-parse --short HEAD")} on branch #{sh("git rev-parse --abbrev-ref HEAD")}",
|
||||
release_notes: "#{releaseNotes}"
|
||||
)
|
||||
end
|
||||
|
||||
@@ -224,4 +236,14 @@ platform :android do
|
||||
aab: "app/build/outputs/bundle/standardBeta/com.x8bit.bitwarden-standard-beta.aab",
|
||||
)
|
||||
end
|
||||
|
||||
desc "Generate release notes"
|
||||
lane :generateReleaseNotes do |options|
|
||||
branchName = `git rev-parse --abbrev-ref HEAD`.chomp()
|
||||
releaseNotes = changelog_from_git_commits(
|
||||
commits_count: 1,
|
||||
pretty: "%s%n#{options[:repoName]}/#{branchName} @ %h %n %n#{options[:actionUrl]}"
|
||||
)
|
||||
releaseNotes
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user