Skip to content

codeaphex/github_release_nuget_workflow

Repository files navigation

GitHub Release - NuGet Workflow

GitHub top language GitHub License Nuget Downloads

Status

Workflow

Workflow Badge

Stable version

GitHub release (latest SemVer) Nuget

Development version

GitHub release (latest SemVer including pre-releases) Nuget (with prereleases)

Features

  • Create and push a NuGet package on a Github Release
  • Supports Semantic Versioning 2.0.0 for prerelease packages

Usage

Prerequisites

  • 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

Getting started

  1. Copy workflow
  2. Add nuspec
  3. Set secret
  4. Check Assembly version
  5. Push
  6. Create release
  7. Profit!!!

About

Create and push a NuGet package on a Github Release

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages