Skip to content

Commit

Permalink
Merge pull request #132 from pascalberger/feature/disable-myget
Browse files Browse the repository at this point in the history
Remove publishing to MyGet
  • Loading branch information
gep13 authored Nov 28, 2020
2 parents 3d42824 + f7f9fda commit 4a3952e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cake Git

[![NuGet](https://img.shields.io/nuget/v/Cake.Git.svg)](https://www.nuget.org/packages/Cake.Git) [![MyGet](https://img.shields.io/myget/cake-contrib/vpre/Cake.Git.svg?label=MyGet)](https://www.myget.org/feed/wcomab/package/nuget/Cake.Git)
[![NuGet](https://img.shields.io/nuget/v/Cake.Git.svg)](https://www.nuget.org/packages/Cake.Git)

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp.

Expand Down
33 changes: 1 addition & 32 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -269,36 +269,6 @@ Task("Test")
executeTests();
});



Task("Publish-MyGet")
.IsDependentOn("Create-NuGet-Package")
.IsDependentOn("Test")
.WithCriteria(() => !isLocalBuild)
.WithCriteria(() => !isPullRequest)
.Does(() =>
{
// Resolve the API key.
var apiKey = EnvironmentVariable("MYGET_API_KEY");
if(string.IsNullOrEmpty(apiKey)) {
throw new InvalidOperationException("Could not resolve MyGet API key.");
}

var source = EnvironmentVariable("MYGET_SOURCE");
if(string.IsNullOrEmpty(apiKey)) {
throw new InvalidOperationException("Could not resolve MyGet source.");
}

// Get the path to the package.
var package = nugetRoot + "Cake.Git." + semVersion + ".nupkg";

// Push the package.
NuGetPush(package, new NuGetPushSettings {
Source = source,
ApiKey = apiKey
});
});

Task("Upload-AppVeyor-Artifacts")
.IsDependentOn("Create-NuGet-Package")
.IsDependentOn("Test")
Expand All @@ -322,8 +292,7 @@ Task("Local-Tests")
.IsDependentOn("Test");

Task("AppVeyor")
.IsDependentOn("Upload-AppVeyor-Artifacts")
.IsDependentOn("Publish-MyGet");
.IsDependentOn("Upload-AppVeyor-Artifacts");

Task("Travis")
.IsDependentOn("Test");
Expand Down

0 comments on commit 4a3952e

Please sign in to comment.