From 91e1d78eaf486fc1689c29aa79a058baaaf06073 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:44:24 -0500 Subject: [PATCH] DEVOPS-1805 - Update publish command (#16) * Update build command * Add test logic * Fix publish commands * Remove test logic --- .github/workflows/build.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba9b597..056e0bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,11 +49,9 @@ jobs: run: | OUTPUT_DIR="$(pwd)/build/sc/$RID" echo "### Building self contained binary for $RID to $OUTPUT_DIR" - dotnet publish -c Release -p:PublishDir=$OUTPUT_DIR -r $RID \ - -p:PublishReadyToRun=true -p:PublishSingleFile=true \ - -p:DebugType=None -p:DebugSymbols=false -p:PublishTrimmed=true \ - --self-contained true -p:IncludeNativeLibrariesForSelfExtract=true \ - -p:EnableCompressionInSingleFile=true + dotnet publish -c Release -r $RID --self-contained true -p:PublishDir=$OUTPUT_DIR -p:PublishReadyToRun=true \ + -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false \ + -p:IncludeNativeLibrariesForSelfExtract=true -p:EnableCompressionInSingleFile=true cd $OUTPUT_DIR FILENAME=$(ls hbs*) SUFFIX=${FILENAME#hbs} @@ -75,10 +73,8 @@ jobs: run: | OUTPUT_DIR="$(pwd)/build/fd/$RID" echo "### Building framework dependent binary for $RID to $OUTPUT_DIR" - dotnet publish -c Release -p:PublishDir=$OUTPUT_DIR -r $RID \ - -p:PublishReadyToRun=true -p:PublishSingleFile=true \ - -p:DebugType=None -p:DebugSymbols=false \ - --self-contained false -p:IncludeNativeLibrariesForSelfExtract=true + dotnet publish -c Release -r $RID --self-contained false -p:PublishDir=$OUTPUT_DIR -p:PublishSingleFile=true \ + -p:DebugType=None -p:DebugSymbols=false -p:IncludeNativeLibrariesForSelfExtract=true cd $OUTPUT_DIR FILENAME=$(ls hbs*) SUFFIX=${FILENAME#hbs}