Skip to content

Commit

Permalink
fix: use separate publish directory for ZIP package
Browse files Browse the repository at this point in the history
  • Loading branch information
BytexGrid committed Dec 26, 2024
1 parent 32a65c2 commit 35d09c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,17 @@ jobs:
cd NeatShift
dotnet restore NeatShift.sln
dotnet publish NeatShift.sln -c Release -r win-x64 --self-contained true `
/p:PublishSingleFile=true `
/p:EnableCompressionInSingleFile=true `
/p:IncludeNativeLibrariesForSelfExtract=true `
/p:IncludeAllContentForSelfExtract=true `
/p:DebugType=None `
/p:DebugSymbols=false `
/p:UseAppHost=true `
/p:SelfContained=true `
/p:ResourceHandlingMode=ResourceFile
Compress-Archive -Path ./NeatShift/bin/Release/net6.0-windows/win-x64/publish/* -DestinationPath ./NeatShift/bin/Release/net6.0-windows/win-x64/NeatShift-Release.zip -Force
/p:ResourceHandlingMode=ResourceFile `
/p:PublishDir=bin/Release/net6.0-windows/win-x64/publish-zip
Compress-Archive -Path ./NeatShift/bin/Release/net6.0-windows/win-x64/publish-zip/* -DestinationPath ./NeatShift/bin/Release/net6.0-windows/win-x64/NeatShift-Release.zip -Force
- name: Check File Sizes
if: env.IS_TEST == 'true'
Expand Down

0 comments on commit 35d09c5

Please sign in to comment.