- Create and push a NuGet package on a Github Release
- Supports Semantic Versioning 2.0.0 for prerelease packages
- GitHub project secret named NUGET_TOKEN with a valid NuGet API key is set
- Github repository name must match the name of the library project
- AssemblyVersion of the library matches the GitHub Release version tag
Rules: MAJOR.MINOR.PATCH must match
Example: AssemblyVersion: 0.1.1
matches the following GitHub release versions:
0.1.1
v0.1.1
0.1.1-alpha
v0.1.1-beta.2
- Copy workflow
- Add nuspec
- Set secret
- Check Assembly version
- Push
- Create release
- Profit!!!