fix(release): remove duplicate chmod/ls and duplicate APK check
This commit is contained in:
1 parent
a0be9f8123
commit
486e2d01cf
1 file changed
+5
-8
@@ -70,10 +70,11 @@ jobs:
|
|||||||
ls -la
|
ls -la
|
||||||
ls -la app/build/outputs/apk/release/ 2>/dev/null || echo "No release dir"
|
ls -la app/build/outputs/apk/release/ 2>/dev/null || echo "No release dir"
|
||||||
ls -la app/build/outputs/apk/debug/ 2>/dev/null || echo "No debug dir"
|
ls -la app/build/outputs/apk/debug/ 2>/dev/null || echo "No debug dir"
|
||||||
./gradlew --stop || true
|
./gradlew --stop 2>/dev/null || true
|
||||||
./gradlew assembleDebug assembleRelease --no-daemon --stacktrace > /tmp/build.log 2>&1
|
./gradlew assembleDebug assembleRelease --no-daemon --stacktrace --rerun-tasks 2>&1 | tee /tmp/build.log
|
||||||
BUILD_STATUS=$?
|
BUILD_STATUS=${PIPESTATUS[0]}
|
||||||
tail -100 /tmp/build.log
|
echo "Gradle exit status: $BUILD_STATUS"
|
||||||
|
tail -60 /tmp/build.log
|
||||||
if [ $BUILD_STATUS -ne 0 ]; then
|
if [ $BUILD_STATUS -ne 0 ]; then
|
||||||
echo "Build failed with exit code $BUILD_STATUS"
|
echo "Build failed with exit code $BUILD_STATUS"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -125,10 +126,6 @@ jobs:
|
|||||||
echo "ERROR: APK not found: $APK_PATH"
|
echo "ERROR: APK not found: $APK_PATH"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$APK_PATH" ]; then
|
|
||||||
echo "ERROR: APK not found: $APK"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
ASSET_ID=$(python3 - "$API" "$RELEASE_ID" "$APK" "$GH_TOKEN" << 'PYEOF')
|
ASSET_ID=$(python3 - "$API" "$RELEASE_ID" "$APK" "$GH_TOKEN" << 'PYEOF')
|
||||||
import sys, json
|
import sys, json
|
||||||
|
|||||||
Reference in new issue
Block a user