Skip to content

Commit

Permalink
DEVOPS-1805 - Update publish command (#16)
Browse files Browse the repository at this point in the history
* Update build command

* Add test logic

* Fix publish commands

* Remove test logic
  • Loading branch information
vgrassia authored Feb 20, 2024
1 parent 6e2a599 commit 91e1d78
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down

0 comments on commit 91e1d78

Please sign in to comment.