Skip to content

Instantly share code, notes, and snippets.

@wellingtonjhn
Created November 20, 2017 22:21
Show Gist options
  • Select an option

  • Save wellingtonjhn/e443dde26ffa87278b9dd5136f8662c1 to your computer and use it in GitHub Desktop.

Select an option

Save wellingtonjhn/e443dde26ffa87278b9dd5136f8662c1 to your computer and use it in GitHub Desktop.
Task do Cake para publicar pacote Nuget
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