From 6874da64dbae73a6197a37bc2ee5b88878a8b166 Mon Sep 17 00:00:00 2001 From: Andrei Ivascu <7030530+aivascu@users.noreply.github.com> Date: Mon, 7 Sep 2026 14:38:24 +0300 Subject: [PATCH] Run continuous CI on trunk pushes and accept main. Trigger continuous on push to master/main/release/*, and allow PRs targeting main ahead of the trunk rename. --- .github/workflows/continuous.yml | 6 ++++++ build/Build.cs | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 84d4066..81c5d39 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -17,9 +17,15 @@ name: continuous on: + push: + branches: + - master + - main + - 'release/*' pull_request: branches: - master + - main - 'release/*' jobs: diff --git a/build/Build.cs b/build/Build.cs index a6e3de6..50eee2a 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -21,7 +21,8 @@ "continuous", GitHubActionsImage.WindowsLatest, AutoGenerate = false, - OnPullRequestBranches = [MasterBranch, ReleaseBranch], + OnPushBranches = [MasterBranch, MainBranch, ReleaseBranch], + OnPullRequestBranches = [MasterBranch, MainBranch, ReleaseBranch], PublishArtifacts = false, InvokedTargets = [nameof(Verify), nameof(Cover), nameof(Pack)], EnableGitHubToken = true)] @@ -39,6 +40,7 @@ class Build : NukeBuild public static int Main() => Execute(x => x.Compile); const string MasterBranch = "master"; + const string MainBranch = "main"; const string ReleaseBranch = "release/*"; [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]