Skip to content

Commit

Permalink
Improve publish check
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Nov 25, 2021
1 parent 0dcbcb8 commit a092dfe
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 @@ -30,7 +30,7 @@ public partial class Build
string SourceToUse => !string.IsNullOrWhiteSpace(TagVersion) ? NuGetSource : MyGetGetSource;

Target Publish => _ => _
.OnlyWhenDynamic(() => IsRunningOnWindows && (GitRepository.IsOnMainOrMasterBranch()))
.OnlyWhenDynamic(() => IsRunningOnWindows && (GitRepository.IsOnMainOrMasterBranch() || !string.IsNullOrWhiteSpace(TagVersion)))
.DependsOn(Pack)
.Requires(() => NuGetApiKey, () => MyGetApiKey, () => ChocoApiKey, () => NpmAuthToken)
.Executes(() =>
Expand Down

0 comments on commit a092dfe

Please sign in to comment.