ci: sign with consistent release keystore

This commit is contained in:
Helios 2026-02-23 14:15:29 +01:00
parent ad602f48c3
commit 16ed756e4f
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
2 changed files with 19 additions and 8 deletions

View file

@ -26,10 +26,12 @@ android {
signingConfigs {
create("release") {
storeFile = file(System.getProperty("user.home") + "/.android/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
val keystorePath = System.getenv("RELEASE_KEYSTORE_PATH")
storeFile = if (keystorePath != null) file(keystorePath)
else file(System.getProperty("user.home") + "/.android/debug.keystore")
storePassword = System.getenv("RELEASE_KEYSTORE_PASS") ?: "android"
keyAlias = System.getenv("RELEASE_KEY_ALIAS") ?: "androiddebugkey"
keyPassword = System.getenv("RELEASE_KEY_PASS") ?: "android"
}
}
buildTypes {