Skip to content

Commit 666fee4

Browse files
authored
CSHARP-3231: Push directly to nuget.org (mongodb#463)
1 parent 254e914 commit 666fee4

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
You can get the latest stable release from the [official Nuget.org feed](https://www.nuget.org/packages/MongoDB.Driver) or from our [github releases page](https://github.com/mongodb/mongo-csharp-driver/releases).
55

6-
If you'd like to work with the bleeding edge, you can use our [custom feed](https://www.myget.org/gallery/mongodb). Some packages on this feed are pre-release and, while they've passed all our tests, are not yet ready for production.
7-
8-
96
Getting Started
107
---------------
118

build.cake

+6-6
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,13 @@ Task("PackageNugetPackages")
443443
}
444444
});
445445

446-
Task("PushToMyget")
446+
Task("PushToNuGet")
447447
.Does(() =>
448448
{
449-
var mygetApiKey = EnvironmentVariable("MYGETAPIKEY");
450-
if (mygetApiKey == null)
449+
var nugetApiKey = EnvironmentVariable("NUGETAPIKEY");
450+
if (nugetApiKey == null)
451451
{
452-
throw new Exception("MYGETAPIKEY environment variable missing");
452+
throw new Exception("NUGETAPIKEY environment variable missing");
453453
}
454454

455455
var packageFiles = new List<FilePath>();
@@ -472,8 +472,8 @@ Task("PushToMyget")
472472

473473
NuGetPush(packageFiles, new NuGetPushSettings
474474
{
475-
ApiKey = mygetApiKey,
476-
Source = "https://www.myget.org/F/mongodb/api/v2/package"
475+
ApiKey = nugetApiKey,
476+
Source = "https://api.nuget.org/v3/index.json"
477477
});
478478
});
479479

0 commit comments

Comments
 (0)