.NET Library Build and Release Action
A Composite Action that Builds, Publishes and Releases a .NET 6 Library
Inputs
project-name
Required The Project Name (e.g. RICADO.Logging)
github-token
Required The GitHub Token used to Generate a Changelog and Create Releases
private-nuget-url
Required The URL of the Private NuGet Repository (e.g. https://nuget.pkg.github.com/myname/index.json)
private-nuget-token
Required The Token used for Authentication with the Private NuGet Repository
public-nuget-url
Optional The URL of the Public NuGet Repository (e.g. https://api.nuget.org/v3/index.json)
Defaults to https://api.nuget.org/v3/index.json
public-nuget-token
Optional The Token used for Authentication with the Public NuGet Repository
publish-public
Optional Whether the Library should be Published to the Public NuGet Repository
Defaults to false
dotnet-version
Optional The .NET SDK Version to be used for Builds (e.g. 6.0.x)
Defaults to 6.0.x
Outputs
changelog
A Markdown formatted changelog
Example Usage
uses: ricado-group/dotnet-library-build-release-action@v1
with:
project-name: 'RICADO.Logging'
github-token: ${{ secrets.GITHUB_TOKEN }}
private-nuget-url: 'https://nuget.pkg.github.com/myname/index.json'
private-nuget-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
public-nuget-token: ${{ secrets.NUGET_APIKEY }}
publish-public: true
dotnet-version: 6.0.x
Stay Updated with Dependabot
Use Dependabot to update your GitHub Actions by creating a .github/dependabot.yml
file:
version: 2
updates:
# Maintain Dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"