Skip to content

Commit

Permalink
Fixed pushing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Bäriswyl committed Dec 10, 2019
1 parent 1ce0ef0 commit 6b00085
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -156,34 +156,29 @@ Task("Push-To-Nuget")

// Push the packages
foreach (var package in packages) {
if (package.GetFilename().FullPath.Contains(".symbols.")) {
continue;
}
Information($"Pushing {package}");
NuGetPush(package, new NuGetPushSettings {
Source = "https://nuget.org/api/v2/package",
ApiKey = apiKey
});
}
});
});

Task("Push-To-SymbolSource")
.Does(() =>
{
var apiKey = System.IO.File.ReadAllText(".nugetapikey");

// Get the paths to the packages
var packages = GetFiles($"{artifactDir}/*.nupkg");
var packages = GetFiles($"{artifactDir}/*.snupkg");

// Push the packages
foreach (var package in packages) {
if (package.GetFilename().FullPath.Contains(".symbols.")) {
Information($"Pushing {package}");
NuGetPush(package, new NuGetPushSettings {
Source = "https://nuget.smbsrc.net",
ApiKey = apiKey
});
}
Information($"Pushing {package}");
NuGetPush(package, new NuGetPushSettings {
Source = "https://nuget.smbsrc.net",
ApiKey = apiKey
});
}
});

Expand Down

0 comments on commit 6b00085

Please sign in to comment.