fix: avoid pipefail in find|zip, write file list to temp file first
This commit is contained in:
@@ -70,6 +70,7 @@ jobs:
|
|||||||
- name: Package web app
|
- name: Package web app
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: |
|
run: |
|
||||||
|
# Avoid pipefail issues with find|zip
|
||||||
find . -type f \
|
find . -type f \
|
||||||
! -path './.git/*' \
|
! -path './.git/*' \
|
||||||
! -path './.gitea/*' \
|
! -path './.gitea/*' \
|
||||||
@@ -83,7 +84,9 @@ jobs:
|
|||||||
! -name 'android/local.properties' \
|
! -name 'android/local.properties' \
|
||||||
! -name 'android/gradle/wrapper/gradle-wrapper.jar' \
|
! -name 'android/gradle/wrapper/gradle-wrapper.jar' \
|
||||||
! -name 'android/gradlew.bat' \
|
! -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
|
- name: Publish release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|||||||
Reference in New Issue
Block a user