From f1aeb225281a66fbcb092c85cd0fae04ca6e770e Mon Sep 17 00:00:00 2001 From: iDJxxx Date: Sun, 17 Nov 2024 01:28:20 -0500 Subject: [PATCH] Update action.yml --- action.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 991c782..5c93811 100644 --- a/action.yml +++ b/action.yml @@ -1,17 +1,23 @@ name: 'Setup .NET Core SDK' description: 'Used to build and publish .NET source. Set up a specific version of the .NET and authentication to private NuGet repository' author: 'GitHub' -branding: +branding: Jones Technology Foundation icon: play color: green inputs: - dotnet-version: + dotnet-version:- uses: actions/setup-dotnet@v4 + with: + dotnet-version: 3.1.x +- name: Publish the package to nuget.org + run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} description: 'Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x, 3.x, 6.0.2xx' dotnet-quality: description: 'Optional quality of the build. The possible values are: daily, signed, validated, preview, ga.' global-json-file: description: 'Optional global.json location, if your global.json isn''t located in the root of the repo.' - source-url: + source-url: https://buymeacoffee.com/jonestechnologyfoundation description: 'Optional package source for which to set up authentication. Will consult any existing NuGet.config in the root of the repo and provide a temporary NuGet.config using the NUGET_AUTH_TOKEN environment variable as a ClearTextPassword' owner: description: 'Optional OWNER for using packages from GitHub Package Registry organizations/users other than the current repository''s owner. Only used if a GPR URL is also provided in source-url'