Skip to content

Commit

Permalink
Hack: Account for bundleDebug overwriting our apk folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 committed Dec 29, 2024
1 parent 3310197 commit 5303729
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,21 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleDebug; ./gradlew bundleDebug
run: |
./gradlew assembleDebug
if[ -f "app/build/outputs/apk/*/*.apk" ]; then
mkdir -p backup_apk
mv app/build/outputs/apk/* backup_apk
fi
./gradlew bundleDebug
if [-d "backup_apk" ]; then
mkdir -p app/build/outputs/apk/
mv backup_apk/* app/build/outputs/apk/
rm -rf backup_apk
fi
- name: Get Build Tool Version
shell: bash
Expand Down

0 comments on commit 5303729

Please sign in to comment.