Skip to content

Installs the .NET SDK (or SDKs), and add a custom NuGet source.

Notifications You must be signed in to change notification settings

warrenbrasil/dotnet-config

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Warren - Configure .NET SDK ⚙️

This action is responsible for installing the .NET SDK (or SDKs) on the workflow runner and add a custom NuGet source.

Inputs

dotnet-version

Required: The SDK version (or versions) to be installed

nuget-user

Required: User that will read/write packages

nuget-api-key

Required: The API key to authorize read/write packages

nuget-source

Required: The URL to NuGet source index.json

nuget-source-name

Required: The source name to be saved in nuget.config file

Usage

- name: Warren - Configure .NET SDK
  uses: warrenbrasil/dotnet-config@v1
  with:
    dotnet-version: 6.0.x
    nuget-user: ${{ secrets.NUGET_USER }}
    nuget-api-key: ${{ secrets.NUGETAPIKEY }}
    nuget-source: ${{ secrets.NUGET_SOURCE }}
    nuget-source-name: ${{ secrets.NUGET_SOURCE_NAME }}

Installing multiple .NET SDKs:

- name: Warren - Configure .NET SDK
  uses: warrenbrasil/dotnet-config@v1
  with:
    dotnet-version: |
      6.0.x
      3.1.x
    nuget-user: ${{ secrets.NUGET_USER }}
    nuget-api-key: ${{ secrets.NUGETAPIKEY }}
    nuget-source: ${{ secrets.NUGET_SOURCE }}
    nuget-source-name: ${{ secrets.NUGET_SOURCE_NAME }}

About

Installs the .NET SDK (or SDKs), and add a custom NuGet source.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published