From 32699008bdc6cdc4aecf7c7b868ddac172bfa6d5 Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Sun, 18 May 2025 16:07:38 +0200 Subject: [PATCH] fix windows zip not working and only archive whats inside run.dist --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5203fcb..952d6ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,9 +39,14 @@ jobs: output-file: ShatterStack - name: Zip Build Output + shell: bash run: | - mkdir -p zip_output - zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist + if [[ "$RUNNER_OS" == "Windows" ]]; then + powershell -Command "Compress-Archive -Path build\run.dist\* -DestinationPath zip_output\ShatterStack-${{ runner.os }}.zip" + else + mkdir -p zip_output + zip -r "zip_output/ShatterStack-${{ runner.os }}.zip" build/run.dist/* + fi - name: Upload Zipped Build Artifact uses: actions/upload-artifact@v4