From 4da6cb8d88d31403134b57619f7a4a4ded71c4d3 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Fri, 19 Jul 2024 12:25:17 +0000 Subject: [PATCH] [Actions] Updated .github/actions/dotnet-publish/action.yml --- .github/actions/dotnet-publish/action.yml | 24 ++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/actions/dotnet-publish/action.yml b/.github/actions/dotnet-publish/action.yml index cc703042..d384c9f0 100644 --- a/.github/actions/dotnet-publish/action.yml +++ b/.github/actions/dotnet-publish/action.yml @@ -38,7 +38,29 @@ runs: - name: "Dotnet: Pack For Octopus" working-directory: ${{github.workspace}}/src/${{inputs.OCTOPUS_DEPLOY_PACKAGE}} shell: bash - run: dotnet publish --no-build --no-restore -warnaserror --configuration:Release -r:${{inputs.PLATFORM}} --self-contained -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:Version=${{inputs.BUILD_VERSION}}" -p:IncludeNativeLibrariesForSelfExtract=false "-p:IsProduction=${{inputs.PRODUCTION_BUILD}}" "-p:FFPublishing:True" -p:SolutionDir=..\\ --output ../server-dist/${{inputs.PLATFORM}} -nodeReuse:False ${{env.DOTNET_RELEASE_DEFINES}} + run: | + dotnet publish \ + --no-restore \ + -warnaserror \ + --configuration:Release \ + "-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:FFPublishing=True" \ + "-p:SolutionDir=..\\" \ + "-p:IsProduction=${{inputs.PRODUCTION_BUILD}}" \ + --output ../server-dist/${{inputs.PLATFORM}} \ + ${{env.DOTNET_RELEASE_DEFINES}} env: ReleaseNotes: ${{inputs.RELEASE_NOTES}} DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"