From 22e6efb495c20f5ec00dd4fa257c7a382b92feb9 Mon Sep 17 00:00:00 2001 From: Sergey <61871201+SergeyLadanov@users.noreply.github.com> Date: Wed, 25 Oct 2023 23:51:23 +0300 Subject: [PATCH] Update action.yml --- action.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 0d812e8..0bf2df9 100644 --- a/action.yml +++ b/action.yml @@ -4,10 +4,26 @@ branding: color: blue icon: app-indicator inputs: - command: - description: 'Command' + build-type: + description: 'Build type (Debug or Release)' 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: using: 'docker' image: 'docker://mcr.microsoft.com/dotnet/sdk:6.0' @@ -15,12 +31,12 @@ runs: - dotnet - publish - -c - - Release + - ${{ inputs.build-type }} - -o - - out + - ${{ inputs.build-output }} - -r - - win-x64 + - ${{ inputs.target-platform }} - --self-contained - - false - - /p:EnableWindowsTargeting=true + - ${{ inputs.self-contained }} + - /p:EnableWindowsTargeting=${{ inputs.windows-targeting }}