1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-05 09:53:33 +03:00

windows-build/tar: Just run a tar command ourselves directly

thedoctor0/zip-release has a bug where only the first word in `exclusions`
has `--exclude=` pre-pended to it, the other words being treated as input
filenames/globs/paths.  So, let's do this manually.
This commit is contained in:
Athanasius 2023-01-12 12:54:19 +00:00
parent 042c8d4ff2
commit 048be66f54
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -26,16 +26,27 @@ jobs:
submodules: true submodules: true
- name: Make tar archive - name: Make tar archive
uses: thedoctor0/zip-release@main
with: with:
# See the 'zip' version for commentary on these values script: |
type: 'tar' # For 'tar' we can only specify filename/glob exclusions, not any
directory: '..' # directory location
path: 'EDMarketConnector' tar -C .. -c -v -z \
filename: 'EDMarketConnector/EDMarketConnector-release-${{ needs.variables.outputs.sem_ver }}.tar.gz' -f EDMarketConnector/EDMarketConnector-release-${{ needs.variables.outputs.sem_ver }}.tar.gz \
# For 'tar' we can only specify filenames, not any directory location --exclude=EDMarketConnector-release-*.* \
exclusions: 'EDMarketConnector-release-*.* .editorconfig .flake8 .git* .mypy.ini .pre-commit-config.yaml Build-exe-and-msi.py *.manifest coriolis-data img pyproject.toml scripts tests wix' --exclude=.editorconfig \
# exclusions: 'EDMarketConnector/EDMarketConnector-release-*.* EDMarketConnector/.editorconfig EDMarketConnector/.flake8 EDMarketConnector/.git* EDMarketConnector/.mypy.ini EDMarketConnector/.pre-commit-config.yaml EDMarketConnector/Build-exe-and-msi.py EDMarketConnector/*.manifest EDMarketConnector/coriolis-data/ EDMarketConnector/img/ EDMarketConnector/pyproject.toml EDMarketConnector/scripts/ EDMarketConnector/tests/ EDMarketConnector/wix/' --exclude=.flake8 \
--exclude=.git* \
--exclude=.mypy.ini \
--exclude=.pre-commit-config.yaml \
--exclude=Build-exe-and-msi.py \
--exclude=*.manifest \
--exclude=coriolis-data \
--exclude=img \
--exclude=pyproject.toml \
--exclude=scripts \
--exclude=tests \
--exclude=wix \
EDMarketConnector
- name: Upload build files - name: Upload build files
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3