From 290e40ab25b7b564d8a4b61ad1444f17a7d58de4 Mon Sep 17 00:00:00 2001 From: Furkan Baytekin Date: Sat, 25 May 2024 16:55:45 +0300 Subject: [PATCH] ci: added windows compatible zipping system --- .github/workflows/release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ea343e1..7bae6dc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -53,12 +53,18 @@ jobs: - name: Publish run: dotnet publish --configuration Release --runtime ${{ matrix.rid }} --self-contained --output ./publish - - name: Zip published files + - name: Zip published files (Linux and macOS) + if: runner.os != 'Windows' run: | cd publish zip -r ../${{ matrix.os }}-${{ matrix.architecture }}-artifact.zip . shell: bash + - name: Zip published files (Windows) + if: runner.os == 'Windows' + run: | + powershell Compress-Archive -Path publish\* -DestinationPath ${{ matrix.os }}-${{ matrix.architecture }}-artifact.zip + - name: Upload artifact uses: actions/upload-artifact@v2 with: