fix(release): use correct APK filenames (app-debug.apk, app-release.apk)
dev / Build debug APK (push) Successful in 32s
release / Build & attach release APK (push) Failing after 33s

This commit is contained in:
Incido Developer committed 2026-08-20 13:27:56 +12:00
1 parent 3c8d01cca9
commit 594525ed10
1 file changed
+6 -5
+6 -5
View File
@@ -104,12 +104,13 @@ jobs:
if [ -z "$RELEASE_ID" ]; then echo "ERROR: Failed to get release ID"; exit 1; fi if [ -z "$RELEASE_ID" ]; then echo "ERROR: Failed to get release ID"; exit 1; fi
for APK in "$APK_DEBUG" "$APK_RELEASE"; do for APK in "$APK_DEBUG" "$APK_RELEASE"; do
if [ -f "app/build/outputs/apk/release/$APK" ]; then if echo "$APK" | grep -q "debug"; then
APK_PATH="app/build/outputs/apk/release/$APK" APK_PATH="app/build/outputs/apk/debug/app-debug.apk"
elif [ -f "app/build/outputs/apk/debug/$APK" ]; then
APK_PATH="app/build/outputs/apk/debug/$APK"
else else
echo "ERROR: APK not found: $APK" APK_PATH="app/build/outputs/apk/release/app-release.apk"
fi
if [ ! -f "$APK_PATH" ]; then
echo "ERROR: APK not found: $APK_PATH"
exit 1 exit 1
fi fi
if [ ! -f "$APK_PATH" ]; then if [ ! -f "$APK_PATH" ]; then