A Composite Action that Builds, Publishes and Releases a .NET 7+ Library
Required The Project Name (e.g. RICADO.Logging)
Required The GitHub Token used to Generate a Changelog and Create Releases
Required The URL of the Private NuGet Repository (e.g. https://nuget.pkg.github.com/myname/index.json)
Required The Token used for Authentication with the Private NuGet Repository
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
Optional The Token used for Authentication with the Public NuGet Repository
Optional Whether the Library should be Published to the Public NuGet Repository
Defaults to false
Optional The .NET SDK Version to be used for Builds (e.g. 7.0.x)
Defaults to 7.0.x
A Markdown formatted changelog
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: 7.0.x
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"