This action is responsible for installing the .NET SDK (or SDKs) on the workflow runner and add a custom NuGet source.
Required: The SDK version (or versions) to be installed
Required: User that will read/write packages
Required: The API key to authorize read/write packages
Required: The URL to NuGet source index.json
Required: The source name to be saved in nuget.config file
- 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 }}