From 323217c1a7cf187a6c249655a66601d6f031366d Mon Sep 17 00:00:00 2001 From: celeron533 Date: Mon, 12 Feb 2024 12:16:06 +0800 Subject: [PATCH] conditionally to publish single file --- .github/workflows/dotnet-desktop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 9a1e333..3259aa7 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -14,6 +14,11 @@ on: - 'README.md' - 'LICENSE' workflow_dispatch: + inputs: + PublishSingleFile_Windows: + description: 'Publish single file for Windows' + required: false + type: boolean env: dotnet_version: '6.0.x' @@ -80,9 +85,11 @@ jobs: !bin/**/*.pdb - name: Publish With NET + if: ${{ inputs.PublishSingleFile_Windows }} run: dotnet publish DicomGrep/DicomGrep.csproj -c $env:configuration -p:PublishSingleFile=true --output bin/publish2/net$env:dotnet_version/$env:configuration - name: Upload articraft + if: ${{ inputs.PublishSingleFile_Windows }} uses: actions/upload-artifact@v4 with: name: DicomGrep-${{ env.configuration }}-publishWithNet${{ env.dotnet_version }}-Windows