Skip to content

Commit 6e51bcf

Browse files
ci(android): more debugging steps
1 parent 3be4dff commit 6e51bcf

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/android-release.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,35 @@ jobs:
150150
ORG_GRADLE_PROJECT_MYAPP_UPLOAD_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
151151
ORG_GRADLE_PROJECT_MYAPP_UPLOAD_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
152152
run: |
153+
# Verify keystore exists before build
154+
echo "Verifying keystore before build..."
155+
if [ ! -f android/app/release.keystore ]; then
156+
echo "✗ Keystore file missing!"
157+
exit 1
158+
fi
159+
ls -lh android/app/release.keystore
160+
161+
# Verify environment variables are set
162+
echo "Environment variables check:"
163+
echo "ORG_GRADLE_PROJECT_MYAPP_UPLOAD_STORE_FILE=${ORG_GRADLE_PROJECT_MYAPP_UPLOAD_STORE_FILE}"
164+
echo "ORG_GRADLE_PROJECT_MYAPP_UPLOAD_KEY_ALIAS=${ORG_GRADLE_PROJECT_MYAPP_UPLOAD_KEY_ALIAS}"
165+
echo "Store password length: ${#ORG_GRADLE_PROJECT_MYAPP_UPLOAD_STORE_PASSWORD}"
166+
echo "Key password length: ${#ORG_GRADLE_PROJECT_MYAPP_UPLOAD_KEY_PASSWORD}"
167+
168+
# Run build
153169
./scripts/build-release.sh || {
154170
echo "Build failed, checking for detailed errors..."
155171
if [ -f gradle-build.log ]; then
156-
echo "Last 100 lines of gradle output:"
157-
tail -100 gradle-build.log
172+
echo "Last 200 lines of gradle output:"
173+
tail -200 gradle-build.log | grep -A 20 -B 20 "sign\|Sign\|SIGN\|keystore\|Keystore" || tail -200 gradle-build.log
174+
fi
175+
176+
# Check if keystore still exists
177+
if [ -f android/app/release.keystore ]; then
178+
echo "Keystore still exists after build failure"
179+
ls -lh android/app/release.keystore
180+
else
181+
echo "✗ Keystore was deleted during build!"
158182
fi
159183
exit 1
160184
}

0 commit comments

Comments
 (0)