fix: avoid pipefail in find|zip, write file list to temp file first
CI / build-android (push) Successful in 3m50s
CI / test (push) Successful in 44s

This commit is contained in:
agentbox
2026-08-01 11:10:59 +00:00
parent 3a94a8a8ba
commit 047734b613
+4 -1
View File
@@ -70,6 +70,7 @@ jobs:
- name: Package web app
if: startsWith(github.ref, 'refs/tags/v')
run: |
# Avoid pipefail issues with find|zip
find . -type f \
! -path './.git/*' \
! -path './.gitea/*' \
@@ -83,7 +84,9 @@ jobs:
! -name 'android/local.properties' \
! -name 'android/gradle/wrapper/gradle-wrapper.jar' \
! -name 'android/gradlew.bat' \
| zip -q meal-tracker.zip -@
> /tmp/files.txt
zip -q meal-tracker.zip -@ < /tmp/files.txt
echo "Packaged $(wc -l < /tmp/files.txt) files ($(du -h meal-tracker.zip | cut -f1))"
- name: Publish release
if: startsWith(github.ref, 'refs/tags/v')