Skip to content

Commit

Permalink
fix(build): Make sure pack runs on release branch too, make it trigge…
Browse files Browse the repository at this point in the history
…r gh publish
  • Loading branch information
jcathalina committed Oct 16, 2024
1 parent d3be79d commit f2f2e5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion build/Build.Pack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sealed partial class Build
.Produces(ArtifactsDirectory / ArtifactsType)
.DependsOn(Compile)
.Triggers(PublishToGitHub, PublishToNuGet)
.OnlyWhenStatic(() => IsLocalBuild || GitRepository.IsOnDevelopBranch())
.OnlyWhenStatic(() => IsLocalBuild || GitRepository.IsOnDevelopBranch() || GitRepository.IsOnReleaseBranch())
.Executes(() =>
{
var readme = CreateNugetReadme();
Expand Down
1 change: 0 additions & 1 deletion build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ List<string> GlobBuildConfigurations()
}

Target PublishToGitHub => _ => _
.DependsOn(Pack)
.Requires(() => GitHubToken)
.Requires(() => GitRepository)
.OnlyWhenStatic(() => IsServerBuild && (GitRepository.IsOnDevelopBranch() || GitRepository.IsOnReleaseBranch()))
Expand Down

0 comments on commit f2f2e5d

Please sign in to comment.