From a5763dfe3e0d3f557069c53da2c87423c9295199 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 20 Nov 2023 14:34:41 +0100 Subject: [PATCH] ci: zip built executables --- .github/workflows/builder_releaser.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/builder_releaser.yml b/.github/workflows/builder_releaser.yml index 9e29b2df..cc6b93f1 100644 --- a/.github/workflows/builder_releaser.yml +++ b/.github/workflows/builder_releaser.yml @@ -72,11 +72,16 @@ jobs: - name: Generates Executable run: python -O ./builder/pyinstaller_build_ubuntu.py + - name: Compress into ZIP + run: | + cd dist/ + zip -r9 DicoGIS_Ubuntu . DicoGIS_*/* + - uses: actions/upload-artifact@v3 with: name: DicoGIS_executable_Ubuntu path: | - dist/DicoGIS*/ + dist/DicoGIS_*.zip if-no-files-found: error build-windows: @@ -113,12 +118,17 @@ jobs: - name: Generates MS Executable run: python -O .\builder\pyinstaller_build_windows.py + - name: Compress into ZIP + run: | + cd dist/ + zip -r9 DicoGIS_Windows . DicoGIS_*/* + - name: Save it as artifact uses: actions/upload-artifact@v3 with: name: DicoGIS_executable_Windows path: | - dist/DicoGIS* + dist/DicoGIS_*.zip if-no-files-found: error release: @@ -149,5 +159,5 @@ jobs: with: discussion_category_name: announcements fail_on_unmatched_files: true - files: builds/*/dist/* + files: builds/*/*.zip generate_release_notes: true