Skip to content

Commit

Permalink
conditionally to publish single file
Browse files Browse the repository at this point in the history
  • Loading branch information
celeron533 committed Feb 12, 2024
1 parent 6a492cf commit 323217c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 323217c

Please sign in to comment.