teamcitynuget-packagenugetgallery

Publish a specific TeamCity artifact to NuGet


I have set up a local NuGet gallery and want to publish my build artifacts to it. Rather than publishing every single build artifact to the Nuget gallery each time there is a build, I want to be able to publish a specific version of the artifact manually when I am satisfied that it is a stable version.

Is there a way to do that in TeamCity?


Solution

  • One fairly simple option is to create a build chain, with a Package build having a snapshot dependency on the CI build:

    CI Build -> Package Build

    That way you can manually trigger the Package build once you're ready. You'll need to move your Pack / Publish build steps in to the Package build of course.

    You can target specific change-sets as well if you're not looking to publish the 'latest' build.