Skip to content

Commit

Permalink
updating build to main from master
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Renaud committed Mar 18, 2021
1 parent d0caad1 commit 80a6e5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Nuke.Common.Tools.Coverlet;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Utilities;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
Expand Down Expand Up @@ -103,12 +104,16 @@ class Build : NukeBuild
.SetSource("https://nuget.pkg.github.com/rena0157/index.json")
.SetApiKey(GitHubToken));
}
else if (GitRepository.IsOnMasterBranch())
else if (GitRepository.Branch?.EqualsOrdinalIgnoreCase("main") ?? false)
{
DotNetNuGetPush(p => p
.SetTargetPath(OutputDirectory / "*.nupkg")
.SetSource("https://api.nuget.org/v3/index.json")
.SetApiKey(NugetApiKey));
}
else
{
Logger.Log(LogLevel.Normal, "No packages where released");
}
});
}

0 comments on commit 80a6e5d

Please sign in to comment.