From 3cbcda05c956a72a9bc4d3544a796bb97d7aef99 Mon Sep 17 00:00:00 2001 From: viordash <36102143+viordash@users.noreply.github.com> Date: Wed, 21 Feb 2024 23:52:47 +0300 Subject: [PATCH] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 03f44b4..ba0407f 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -24,9 +24,18 @@ jobs: - name: Build run: dotnet build ./AudioRezkaApp/AudioRezkaApp.sln --configuration Release --no-restore - - name: Publish + - name: Publish single file & self-contained run: | - dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=true --self-contained false -o "./out/win64" -p:DebugType=None + dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=true --self-contained true -o "./out/win64_sfsc" -p:DebugType=None + + - name: Publish self-contained + run: | + dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=false --self-contained true -o "./out/win64_sc" -p:DebugType=None + + - name: Publish single file + run: | + dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=true --self-contained false -o "./out/win64_sf" -p:DebugType=None + - name: Deploy Win64 uses: actions/upload-artifact@v4