johnkors / dotnet-library

Template repo for a .NET library w/ GH Actions for build & publish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotnet-library

Sample badges

Build NuGet NuGet

What is this?

Template repo for setting up a simple .NET library (nuget) show casing some common use cases:

Using the template

Requirements

The GitHub actions requirements:

  • The sln file must be in /source
  • For publish to work, set a GitHub Secret NUGETORGAPIKEY for nuget.org

Conventions

  • It builds & tests projects part of the sln found in /source
  • Renaming the sln file does not impact the GitHub actions.
  • Renaming any projects does not impact the GitHub actions.
  • Publishing a pre-release version is done via manually triggering the prerelease GH action in any branch (input to the trigger). Versioning handled automatically by GitVersion.
  • Publishing a release version is done the same way: manually triggering the release GH action.

About

Template repo for a .NET library w/ GH Actions for build & publish

License:MIT License


Languages

Language:Shell 62.1%Language:C# 37.9%