Update action.yml
This commit is contained in:
parent
5dd88c3968
commit
22e6efb495
32
action.yml
32
action.yml
@ -4,10 +4,26 @@ branding:
|
|||||||
color: blue
|
color: blue
|
||||||
icon: app-indicator
|
icon: app-indicator
|
||||||
inputs:
|
inputs:
|
||||||
command:
|
build-type:
|
||||||
description: 'Command'
|
description: 'Build type (Debug or Release)'
|
||||||
required: true
|
required: true
|
||||||
default: dotnet --version
|
default: Release
|
||||||
|
build-output:
|
||||||
|
description: 'Build output folder'
|
||||||
|
required: true
|
||||||
|
default: Build
|
||||||
|
target-platform:
|
||||||
|
description: 'Target platform'
|
||||||
|
required: true
|
||||||
|
default: win-x64
|
||||||
|
self-contained:
|
||||||
|
description: 'Pack all to executable'
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
windows-targeting:
|
||||||
|
description: 'Enable or disable windows targeting'
|
||||||
|
required: true
|
||||||
|
default: true
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'docker://mcr.microsoft.com/dotnet/sdk:6.0'
|
image: 'docker://mcr.microsoft.com/dotnet/sdk:6.0'
|
||||||
@ -15,12 +31,12 @@ runs:
|
|||||||
- dotnet
|
- dotnet
|
||||||
- publish
|
- publish
|
||||||
- -c
|
- -c
|
||||||
- Release
|
- ${{ inputs.build-type }}
|
||||||
- -o
|
- -o
|
||||||
- out
|
- ${{ inputs.build-output }}
|
||||||
- -r
|
- -r
|
||||||
- win-x64
|
- ${{ inputs.target-platform }}
|
||||||
- --self-contained
|
- --self-contained
|
||||||
- false
|
- ${{ inputs.self-contained }}
|
||||||
- /p:EnableWindowsTargeting=true
|
- /p:EnableWindowsTargeting=${{ inputs.windows-targeting }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user