From 61750d0770250ea52713da9b08d8f58c8c257fce Mon Sep 17 00:00:00 2001 From: smallboyc Date: Wed, 17 Jul 2024 16:06:53 +0200 Subject: [PATCH] fix : windows unzip command --- .github/workflows/create_release_executables.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_release_executables.yml b/.github/workflows/create_release_executables.yml index a609bbd4..61972f66 100644 --- a/.github/workflows/create_release_executables.yml +++ b/.github/workflows/create_release_executables.yml @@ -87,10 +87,16 @@ jobs: cd ${{github.workspace}}/build cpack - - name: Zip Release binaries + - name: Zip Release binaries (Linux and MacOS) + if: runner.os != 'Windows' run: | cd ${{github.workspace}}/bin/Release - zip -r ${GITHUB_WORKSPACE}/build/release-binaries-${{matrix.config.name}}.zip . + zip -r ${{github.workspace}}/build/release-binaries-${{matrix.config.name}}.zip . + + - name: Zip Release binaries (Windows) + if: runner.os == 'Windows' + run: | + Compress-Archive -Path ${{github.workspace}}\bin\Release\* -DestinationPath ${{github.workspace}}\build\release-binaries-${{matrix.config.name}}.zip - name: Release uses: softprops/action-gh-release@v1