github: Also exclude `.git` and `tests/tests/swfs` from `reproducible-source.zip`

This commit is contained in:
TÖRÖK Attila 2024-02-02 03:18:04 +01:00 committed by Nathan Adams
parent 603a76bab0
commit 98b8b05538
1 changed files with 3 additions and 1 deletions

View File

@ -322,7 +322,9 @@ jobs:
- name: Produce reproducible source archive
if: ${{ !matrix.demo }}
shell: bash -l {0}
run: zip -r reproducible-source.zip . -x /web/node_modules/**/* -x /web/**/node_modules/**/* && cp reproducible-source.zip "${{ needs.create-nightly-release.outputs.package_prefix }}-reproducible-source.zip"
run: |
zip -r reproducible-source.zip . -x '/web/node_modules/*' -x '/web/*/node_modules/*' -x '/.git/*' -x '/tests/tests/swfs/*'
cp reproducible-source.zip "${{ needs.create-nightly-release.outputs.package_prefix }}-reproducible-source.zip"
- name: Upload reproducible source archive
if: ${{ !matrix.demo }}