Skip to content

Commit

Permalink
Update build.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi authored Jan 27, 2024
1 parent 9a4ba49 commit 01b07e8
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 @@ -59,7 +59,7 @@ await BuildProcess.CreateBuilder()
.WithDependency("test")
.WithExecution(async () =>
{
if (stable)
if (branchName == "master" || branchName == "main" || stable)
{
foreach (var project in srcProjects)
{
Expand Down Expand Up @@ -93,7 +93,7 @@ await BuildProcess.CreateBuilder()
}
}
if (branchName != "master" && branchName != "preview")
if (branchName != "master" && branchName != "main" && branchName != "preview")
{
Console.WriteLine($"Skip push since branch name {branchName} not support push packages");
return;
Expand Down

0 comments on commit 01b07e8

Please sign in to comment.