mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +03:00
windows-build/archives: Create .tar.gz as well
* Move the definition of archive excludes to a global variable. * Add another step to create a tar(.gz) archive as well. * Add .tar.gz to the `Built files` handling.
This commit is contained in:
parent
64b1a4afd6
commit
4edebf981f
25
.github/workflows/windows-build.yml
vendored
25
.github/workflows/windows-build.yml
vendored
@ -10,6 +10,7 @@ jobs:
|
|||||||
variables:
|
variables:
|
||||||
outputs:
|
outputs:
|
||||||
sem_ver: ${{ steps.var.outputs.sem_ver }}
|
sem_ver: ${{ steps.var.outputs.sem_ver }}
|
||||||
|
archive_exclusions: ${{ steps.var.outputs.archive_exclusions }}
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- name: Setting global variables
|
- name: Setting global variables
|
||||||
@ -18,6 +19,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
core.setOutput('sem_ver', '${{ github.ref_name }}'.replaceAll('Release\/', ''))
|
core.setOutput('sem_ver', '${{ github.ref_name }}'.replaceAll('Release\/', ''))
|
||||||
|
# If this value gets too long it can cause issues with Windows
|
||||||
|
# command-line length and zip/tar will fail
|
||||||
|
# And all the exclusions need to be prefixed with the 'root'
|
||||||
|
# directory.
|
||||||
|
core.setOutput('archive_exclusions', 'EDMarketConnector/EDMarketConnector-release-*.* EDMarketConnector/dist.win32 EDMarketConnector/__pycache__/ 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/out/ EDMarketConnector/out.zip EDMarketConnector/pyproject.toml EDMarketConnector/scripts/ EDMarketConnector/tests/ EDMarketConnector/wix/ EDMarketConnector/WinSparkle.*')
|
||||||
|
|
||||||
windows_build:
|
windows_build:
|
||||||
needs: [variables]
|
needs: [variables]
|
||||||
@ -70,15 +76,25 @@ jobs:
|
|||||||
# directory.
|
# directory.
|
||||||
# NB: If this gets too long it can cause zip 'Command Line Error',
|
# NB: If this gets too long it can cause zip 'Command Line Error',
|
||||||
# presumably due to a Windows CL length limit.
|
# presumably due to a Windows CL length limit.
|
||||||
exclusions: 'EDMarketConnector/EDMarketConnector-release-*.zip EDMarketConnector/dist.win32 EDMarketConnector/__pycache__/ 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/out/ EDMarketConnector/out.zip EDMarketConnector/pyproject.toml EDMarketConnector/scripts/ EDMarketConnector/tests/ EDMarketConnector/wix/ EDMarketConnector/WinSparkle.*'
|
exclusions: ${{ needs.variables.outputs.archive_exclusions }}
|
||||||
|
|
||||||
|
- name: Make tar archive
|
||||||
|
uses: thedoctor0/zip-release@main
|
||||||
|
with:
|
||||||
|
# See the 'zip' version above for commentary on these values
|
||||||
|
type: 'tar'
|
||||||
|
path: 'EDMarketConnector'
|
||||||
|
filename: 'EDMarketConnector/EDMarketConnector-release-${{ needs.variables.outputs.sem_ver }}.tar.gz'
|
||||||
|
exclusions: ${{ needs.variables.outputs.archive_exclusions }}
|
||||||
|
|
||||||
- name: Upload build files
|
- name: Upload build files
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Built files
|
name: Built files
|
||||||
path: |
|
path: |
|
||||||
EDMarketConnector_win*.msi
|
EDMarketConnector_win_*.msi
|
||||||
EDMarketConnector-release-*.zip
|
EDMarketConnector-release-*.zip
|
||||||
|
EDMarketConnector-release-*.tar.gz
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release new version
|
name: Release new version
|
||||||
@ -94,7 +110,7 @@ jobs:
|
|||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Hash files
|
- name: Hash files
|
||||||
run: sha256sum EDMarketConnector_win*.msi EDMarketConnector-release*.zip > ./hashes.sum
|
run: sha256sum EDMarketConnector_win_*.msi EDMarketConnector-release-*.{zip,tar.gz} > ./hashes.sum
|
||||||
|
|
||||||
- name: Create Draft Release
|
- name: Create Draft Release
|
||||||
uses: "softprops/action-gh-release@v1"
|
uses: "softprops/action-gh-release@v1"
|
||||||
@ -104,6 +120,7 @@ jobs:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
discussion_category_name: "Announcement"
|
discussion_category_name: "Announcement"
|
||||||
files: |
|
files: |
|
||||||
./EDMarketConnector_win*.msi
|
./EDMarketConnector_win_*.msi
|
||||||
./EDMarketConnector-release-*.zip
|
./EDMarketConnector-release-*.zip
|
||||||
|
./EDMarketConnector-release-*.tar.gz
|
||||||
./hashes.sum
|
./hashes.sum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user