Skip to content

Commit b14c936

Browse files
gsanchezmclaude
andcommitted
fix: Disable PNG crunching for Android and use workflow_dispatch only for builds.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cad36da commit b14c936

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/mobile-release.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build Mobile Apps
22

33
on:
4-
release:
5-
types: [published]
64
workflow_dispatch:
75

86
permissions:
@@ -12,8 +10,6 @@ jobs:
1210
build-android:
1311
name: Build Android APK
1412
runs-on: ubuntu-latest
15-
permissions:
16-
contents: write
1713
defaults:
1814
run:
1915
working-directory: ./frontend-mobile
@@ -46,6 +42,9 @@ jobs:
4642
- name: Prebuild Android Project
4743
run: npx expo prebuild --platform android --clean
4844

45+
- name: Disable PNG Crunching
46+
run: echo "android.enablePngCrunchInReleaseBuilds=false" >> android/gradle.properties
47+
4948
- name: Build Release APK
5049
run: cd android && ./gradlew assembleRelease
5150

@@ -60,19 +59,9 @@ jobs:
6059
frontend-mobile/android/app/build/outputs/apk/release/app-release.apk
6160
frontend-mobile/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
6261
63-
- name: Release APK
64-
if: github.event_name == 'release'
65-
uses: softprops/action-gh-release@v2
66-
with:
67-
files: |
68-
frontend-mobile/android/app/build/outputs/apk/release/app-release.apk
69-
frontend-mobile/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
70-
7162
build-ios:
7263
name: Build iOS Simulator App
7364
runs-on: macos-latest
74-
permissions:
75-
contents: write
7665
defaults:
7766
run:
7867
working-directory: ./frontend-mobile
@@ -121,9 +110,3 @@ jobs:
121110
with:
122111
name: OmniPizza-iOS-Simulator
123112
path: frontend-mobile/ios/build/Build/Products/Release-iphonesimulator/OmniPizza-Simulator.zip
124-
125-
- name: Release iOS App
126-
if: github.event_name == 'release'
127-
uses: softprops/action-gh-release@v2
128-
with:
129-
files: frontend-mobile/ios/build/Build/Products/Release-iphonesimulator/OmniPizza-Simulator.zip

0 commit comments

Comments
 (0)