Skip to content

Commit f866c45

Browse files
Update build.yml
1 parent 3ae3f6e commit f866c45

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,20 @@ jobs:
5555
--output=./grad.apk
5656
5757
# ----------------------------------------------------------------
58-
# COMMIT & PUSH STEP
59-
# This commits the APK to the root folder of the 'main' branch
58+
# FORCE ADD & COMMIT STEP
6059
# ----------------------------------------------------------------
60+
- name: ➕ Force Add APK (Bypass .gitignore)
61+
if: github.ref == 'refs/heads/main'
62+
run: |
63+
# Force add the file because .apk is likely in your .gitignore
64+
git add -f grad.apk
65+
6166
- name: 💾 Commit and Push APK
62-
# Only run this on the main branch (not tags, to avoid conflicts)
6367
if: github.ref == 'refs/heads/main'
6468
uses: stefanzweifel/git-auto-commit-action@v5
6569
with:
6670
commit_message: "chore: update grad.apk build [skip ci]"
67-
file_pattern: 'grad.apk'
71+
# No file_pattern needed here because we manually staged it above
6872

6973
# ----------------------------------------------------------------
7074
# RELEASE STEP (Tags Only)

0 commit comments

Comments
 (0)