Skip to content

Commit

Permalink
Fix tag condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Mar 27, 2022
1 parent 4512040 commit 6a9f30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/Build.Publish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial class Build
string SourceToUse => !string.IsNullOrWhiteSpace(TagVersion) ? NuGetSource : MyGetGetSource;

Target Publish => _ => _
.OnlyWhenDynamic(() => IsRunningOnWindows && (GitRepository.IsOnMainBranch() || GitRepository.Branch == "nuke-build"))
.OnlyWhenDynamic(() => IsRunningOnWindows && (GitRepository.IsOnMainBranch() || IsTaggedBuild))
.DependsOn(Pack)
.Requires(() => NuGetApiKey)
.Executes(() =>
Expand Down

0 comments on commit 6a9f30f

Please sign in to comment.