Skip to content

Commit

Permalink
feat: adding a new way to compress a directory to an archive on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MidKnightXI committed Jul 21, 2024
1 parent 43e99a2 commit b304639
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b304639

Please sign in to comment.