Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove publishing to MyGet #132

Merged
merged 1 commit into from
Nov 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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