Skip to content

Commit

Permalink
Merge pull request #3 from rena0157/develop
Browse files Browse the repository at this point in the history
Changing master to main
  • Loading branch information
rena0157 authored Mar 18, 2021
2 parents c55f020 + 80a6e5d commit 4f575ce
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 4f575ce

Please sign in to comment.