ci: build both debug and release APKs, attach both to release
dev / Build debug APK (push) Failing after 17s

This commit is contained in:
Incido Developer committed 2026-08-20 07:31:05 +12:00
1 parent b95d1814f9
commit c73cd4c816
2 files changed
+31 -20

No files matched your search

+4 -4
View File
@@ -110,7 +110,7 @@ android {
}
// v0.3.6.0: ship version-stamped APKs at the repo root for every
// release (e.g. `incido-0.3.6.0-debug.apk`, `incido-0.3.6.0.apk`).
// release (e.g. `Incido-0.3.6.0-debug.apk`, `Incido-0.3.6.0-release.apk`).
// See Incido Development Plan §11 for the full release build
// procedure.
//
@@ -130,7 +130,7 @@ val copyReleaseApks = tasks.register("copyReleaseApks") {
group = "build"
description = "Copies debug + release APKs to the repo root, " +
"stamped with the current versionName " +
"(e.g. incido-0.3.6.0-debug.apk, incido-0.3.6.0.apk). " +
"(e.g. Incido-0.3.6.3-debug.apk, Incido-0.3.6.3-release.apk). " +
"See Incido Development Plan §11."
dependsOn("assembleDebug", "assembleRelease")
doLast {
@@ -138,8 +138,8 @@ val copyReleaseApks = tasks.register("copyReleaseApks") {
val rootDir = rootProject.projectDir
val debugSrc = file("$buildDir/outputs/apk/debug/app-debug.apk")
val releaseSrc = file("$buildDir/outputs/apk/release/app-release.apk")
val debugDest = file("$rootDir/incido-${versionName}-debug.apk")
val releaseDest = file("$rootDir/incido-${versionName}.apk")
val debugDest = file("$rootDir/Incido-${versionName}-debug.apk")
val releaseDest = file("$rootDir/Incido-${versionName}-release.apk")
if (debugSrc.exists()) {
debugSrc.copyTo(debugDest, overwrite = true)
logger.lifecycle("Copied: ${debugDest.absolutePath}")