Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVOPS-1805 - Update publish command #16

Merged
merged 4 commits into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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