ci(release): add HealthChat Play Store release pipeline

This commit is contained in:
2026-07-27 18:35:36 +02:00
committed by Sedat Qaja
parent b975611e63
commit 4778fe4a98
14 changed files with 533 additions and 31 deletions
+19 -1
View File
@@ -98,6 +98,18 @@ android {
)
storePassword = environmentOrGradleValue("ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD", "signing.element.nightly.storePassword")
}
// HealthChat Play Store upload key. The keystore is not in the repo:
// CI decodes it from the RELEASE_KEYSTORE_BASE64 secret (see
// .github/workflows/healthchat-release-playstore.yml).
register("healthchat") {
keyAlias = System.getenv("RELEASE_KEY_ALIAS")
?: project.property("signing.healthchat.keyId") as? String?
keyPassword = System.getenv("RELEASE_KEY_PASSWORD")
?: project.property("signing.healthchat.keyPassword") as? String?
storeFile = file(System.getenv("RELEASE_STORE_FILE") ?: "./signature/release.keystore")
storePassword = System.getenv("RELEASE_STORE_PASSWORD")
?: project.property("signing.healthchat.storePassword") as? String?
}
}
val baseAppName = BuildTimeConfig.APPLICATION_NAME
@@ -124,7 +136,13 @@ android {
"login_redirect_scheme",
oAuthRedirectSchemeBase,
)
signingConfig = signingConfigs.getByName("debug")
// Sign with the HealthChat upload key when it is available (CI),
// fall back to the debug key for local release builds.
signingConfig = if (System.getenv("RELEASE_STORE_FILE") != null || file("./signature/release.keystore").exists()) {
signingConfigs.getByName("healthchat")
} else {
signingConfigs.getByName("debug")
}
optimization {
enable = true