Last active
January 14, 2017 10:39
-
-
Save bertt/922049357928ed9738dadfc9f142155a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to enable NuGet package publishing on AppVeyor | |
1] Create nuspec file next to .csproj file in GitHub (same name) | |
2] Enable NuGet packaging | |
AppVeyor -> settings- > Build -> MsBuild -> Automatic packaging -> check 'Package NuGet projects' | |
3] Add NuGet Api key | |
AppVeyor -> settings -> deployment -> deployment provider -> select NuGet -> Api Key -> fill in your NuGet api key | |
Optional: secure api key with https://ci.appveyor.com/tools/encrypt | |
4] Add version number patching | |
AppVeyor -> settings -> General -> AssemblyInfo patching -> Check 'On' | |
Test: Console log after build should look like: | |
--------------------------------------------------- | |
Uploading artifacts... | |
[1/1] tilebelt.1.0.18.nupkg (5,367 bytes)...100% | |
Deploying using NuGet provider | |
Publishing tilebelt.1.0.18.nupkg to https://www.nuget.org/api/v2/package...OK | |
Total packages published: 1 | |
Build success | |
---------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment