diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d667a8f..d3cc07e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,7 +70,7 @@ jobs: # publish standalone windows binaries - name: Publish-win64 - run: dotnet publish CLI/MCGalaxyCLI_dotnet.csproj -r win-x64 --self-contained + run: dotnet publish CLI/MCGalaxyCLI_dotnet.csproj -r win-x64 --self-contained -p:PublishTrimmed=true - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile_net.outcome == 'success' }} @@ -80,7 +80,7 @@ jobs: # publish standalone linux binaries - name: Publish-linux64 - run: dotnet publish CLI/MCGalaxyCLI_dotnet.csproj -r linux-x64 --self-contained + run: dotnet publish CLI/MCGalaxyCLI_dotnet.csproj -r linux-x64 --self-contained -p:PublishTrimmed=true - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile_net.outcome == 'success' }}