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)")]