diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index fa9c2e0..b8f93d4 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -43,8 +43,13 @@ jobs: - name: Archive the build artifacts for Windows if: matrix.os == 'windows-latest' - run: Compress-Archive -Path ./module.json, ./bin/Release/net8.0/win-x64/publish/whichcam -DestinationPath whichcam-windows.zip shell: pwsh + run: | + New-Item -ItemType Directory -Path tempArchive -Force + Copy-Item -Path "./module.json" -Destination "tempArchive/module.json" + Copy-Item -Path "./bin/Release/net8.0/win-x64/publish/whichcam" -Destination "tempArchive/whichcam" + Compress-Archive -Path "tempArchive/*" -DestinationPath "whichcam-windows.zip" + Remove-Item -Recurse -Force tempArchive - name: Archive the build artifacts for macOS if: matrix.os == 'macos-latest'