Search code examples
continuous-integrationnugetappveyor

Disable automatic deployment to NuGet in AppVeyor


I want to accomplish following flow:

  • All commits are built by AppVeyor and .nupkg is created with version for example 1.2.3-{build}.
  • When I decide code is stable enough, I want to manually deploy it to NuGet with version 1.2.3 (without build number suffix).
  • Then I change env variable from 1.2.3 to 1.2.4 and process is repeated.

I have almost complete AppVeyor configuration, but I encountered following problem:

AppVeyor tries to deploy every build to NuGet. I want to be able to manually pick which builds I will promote to stable and push them to NuGet.

How can I make AppVeyor not deploying any build without my action?


Solution

  • You probably need to use Environment instead of Inline deployment. Difference is described here

    For your scenario you can simple remove deployment from build and create new NuGet deployment Environment to manually call is against specific build when needed.