Skip to content

Commit

Permalink
Merge pull request #10 from twenzel/feature/MoreLogging
Browse files Browse the repository at this point in the history
Include checks
  • Loading branch information
twenzel authored May 25, 2022
2 parents fe6433c + b07ab19 commit f47d6fa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,16 @@ Task("Publish")
.Description("Pushes the created NuGet packages to nuget.org")
.Does(() => {

Information($"Upload packages from {outputDirNuget.FullPath}");

// Get the paths to the packages.
var packages = GetFiles(outputDirNuget + "*.nupkg");
var packages = GetFiles(outputDirNuget.CombineWithFilePath("*.nupkg").ToString());

if (packages.Count == 0)
{
Error("No packages found to upload");
return;
}

// Push the package.
NuGetPush(packages, new NuGetPushSettings {
Expand Down

0 comments on commit f47d6fa

Please sign in to comment.