Created
November 20, 2017 22:21
-
-
Save wellingtonjhn/e443dde26ffa87278b9dd5136f8662c1 to your computer and use it in GitHub Desktop.
Task do Cake para publicar pacote Nuget
This file contains hidden or 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
| Task("Push-Nuget-Package") | |
| .IsDependentOn("Create-Nuget-Package") | |
| .Does(() => | |
| { | |
| var apiKey = "b5819ebc-3fd4-4e98-b391-665f36aff91e"; //EnvironmentVariable("apiKey"); | |
| foreach (var package in GetFiles($"{artifactsDirectory}/*.nupkg")) | |
| { | |
| NuGetPush(package, | |
| new NuGetPushSettings { | |
| Source = "https://www.nuget.org/api/v2/package", | |
| ApiKey = apiKey | |
| }); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment