diff --git a/build.cake b/build.cake index d61b978fc..250509156 100644 --- a/build.cake +++ b/build.cake @@ -94,38 +94,6 @@ Task("Package") }); }); -Task("Publish-GitHub") - .WithCriteria(ctx => BuildSystem.IsRunningOnGitHubActions, "Not running on GitHub Actions") - .IsDependentOn("Package") - .Does(context => -{ - var apiKey = Argument("github-key", null); - if(string.IsNullOrWhiteSpace(apiKey)) { - throw new CakeException("No GitHub API key was provided."); - } - - // Publish to GitHub Packages - var exitCode = 0; - foreach(var file in context.GetFiles("./.artifacts/*.nupkg")) - { - context.Information("Publishing {0}...", file.GetFilename().FullPath); - exitCode += StartProcess("dotnet", - new ProcessSettings { - Arguments = new ProcessArgumentBuilder() - .Append("gpr") - .Append("push") - .AppendQuoted(file.FullPath) - .AppendSwitchSecret("-k", " ", apiKey) - } - ); - } - - if(exitCode != 0) - { - throw new CakeException("Could not push GitHub packages."); - } -}); - Task("Publish-NuGet") .WithCriteria(ctx => BuildSystem.IsRunningOnGitHubActions, "Not running on GitHub Actions") .IsDependentOn("Package") @@ -152,7 +120,6 @@ Task("Publish-NuGet") // Targets Task("Publish") - .IsDependentOn("Publish-GitHub") .IsDependentOn("Publish-NuGet"); Task("Default") diff --git a/dotnet-tools.json b/dotnet-tools.json index 958377a8f..5f53d0863 100644 --- a/dotnet-tools.json +++ b/dotnet-tools.json @@ -8,12 +8,6 @@ "dotnet-cake" ] }, - "gpr": { - "version": "0.1.281", - "commands": [ - "gpr" - ] - }, "dotnet-example": { "version": "2.0.0", "commands": [