Skip to content

Commit

Permalink
Tweaked a few more of the guards in the build target tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRogersDev committed Mar 29, 2024
1 parent 0ed7e77 commit a022b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected override void OnBuildInitialized()
Target Pack => _ => _
.Description(Description.Pack)
.DependsOn(Compile)
.OnlyWhenStatic(() => LocalPack
.OnlyWhenDynamic(() => LocalPack
? _releaseGuard.BuildToBePacked(System.Configuration.OverrideMode.Allow)
: _releaseGuard.BuildToBePacked())
.Executes(() =>
Expand Down Expand Up @@ -174,7 +174,7 @@ protected override void OnBuildInitialized()
.Description(Description.Push)
.OnlyWhenStatic(() => IsServerBuild)
.OnlyWhenStatic(() => Configuration.Equals(Configuration.Release))
.OnlyWhenStatic(() => _releaseGuard.BuildToBePacked())
.OnlyWhenDynamic(() => _releaseGuard.BuildToBePacked())
.Requires(() => NUGET_API_KEY)
.Requires(() => NUGET_URL)
.Requires(() => PACKAGES_GITHUB_NUGET_PAT)
Expand Down

0 comments on commit a022b33

Please sign in to comment.