From 5e31e7336de74bc5497a9698fda31cd9ce5b778b Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Wed, 6 Nov 2024 19:40:05 +0000 Subject: [PATCH] [Actions] Updated .github/actions/dotnet-publish/action.yml --- .github/actions/dotnet-publish/action.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/actions/dotnet-publish/action.yml b/.github/actions/dotnet-publish/action.yml index 4a86da1b..f5ab1b9b 100644 --- a/.github/actions/dotnet-publish/action.yml +++ b/.github/actions/dotnet-publish/action.yml @@ -42,19 +42,20 @@ runs: "-r:${{inputs.PLATFORM}}" \ --self-contained \ -nodeReuse:False \ - -p:NoWarn=NETSDK1179 \ - -p:SuppressNETCoreSdkPreviewMessage=true \ - -p:PublishSingleFile=true \ - -p:PublishAot=false \ - -p:PublishReadyToRun=False \ - -p:PublishReadyToRunShowWarnings=True \ - -p:DisableSwagger=False \ - -p:TreatWarningsAsErrors=True \ - -p:IncludeNativeLibrariesForSelfExtract=false \ - "-p:Version=${{inputs.BUILD_VERSION}}" \ + "-p:DisableSwagger=${{env.RELEASE}}" \ "-p:FFPublishing=True" \ - "-p:SolutionDir=..\\" \ + "-p:IncludeNativeLibrariesForSelfExtract=false" \ "-p:IsProduction=${{inputs.PRODUCTION_BUILD}}" \ + "-p:NoWarn=NETSDK1179" \ + "-p:Optimize=true" \ + "-p:PublishAot=false" \ + "-p:PublishReadyToRun=True" \ + "-p:PublishReadyToRunShowWarnings=True" \ + "-p:PublishSingleFile=true" \ + "-p:SolutionDir=..\\" \ + "-p:SuppressNETCoreSdkPreviewMessage=true" \ + "-p:TreatWarningsAsErrors=True" \ + "-p:Version=${{inputs.BUILD_VERSION}}" \ --output ${{github.workspace}}/server-dist/${{inputs.PLATFORM}} \ ${{env.DOTNET_RELEASE_DEFINES}} env: