Skip to content

Commit efa0825

Browse files
committed
change source nuget
1 parent b3373c0 commit efa0825

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

build.cake

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Task("Clean")
2020
CleanDirectory("./ReactiveXComponent/bin");
2121
CleanDirectory("./ReactiveXComponent/obj");
2222
CleanDirectory("./ReactiveXComponentTest/bin");
23-
CleanDirectory("./ReactiveXComponenttest/obj");
23+
CleanDirectory("./ReactiveXComponentTest/obj");
2424

2525
var pathHelloWorldIntegrationTest = "./docker/integration_tests/XCProjects/HelloWorldV5/";
2626
CleanDirectory(pathHelloWorldIntegrationTest + "xcr");
@@ -80,17 +80,14 @@ Task("PushPackage")
8080
{
8181
if (!string.IsNullOrEmpty(apiKey))
8282
{
83-
var package = "./nuget/ReactiveXComponent.Net." + version + ".nupkg";
84-
DotNetCoreNuGetPush(package, new DotNetCoreNuGetPushSettings
83+
DoInDirectory("./nuget", () =>
8584
{
86-
Source = "https://www.nuget.org/api/v2/package",
87-
ApiKey = apiKey
88-
});
89-
var packageSnupkg = "./nuget/ReactiveXComponent.Net." + version + ".snupkg";
90-
DotNetCoreNuGetPush(packageSnupkg, new DotNetCoreNuGetPushSettings
91-
{
92-
SymbolSource = "https://www.nuget.org/api/v2/symbolpackage",
93-
SymbolApiKey = apiKey
85+
var package = "./ReactiveXComponent.Net." + version + ".nupkg";
86+
DotNetCoreNuGetPush(package, new DotNetCoreNuGetPushSettings
87+
{
88+
Source = "https://api.nuget.org/v3/index.json",
89+
ApiKey = apiKey
90+
});
9491
});
9592
}
9693
else

0 commit comments

Comments
 (0)