Use ci.yml for PRs only

This commit is contained in:
Kevin Sommer 2021-05-14 21:20:24 +02:00 committed by Keivn Sommer
parent 79c825cb7a
commit 034730bffb
2 changed files with 1 additions and 6 deletions

View File

@ -17,10 +17,6 @@
name: ci name: ci
on: on:
push:
branches:
- master
- 'releases/*'
pull_request: pull_request:
branches: branches:
- master - master

View File

@ -14,7 +14,6 @@ using static Nuke.Common.Tools.DotNet.DotNetTasks;
[CheckBuildProjectConfigurations] [CheckBuildProjectConfigurations]
[ShutdownDotNetAfterServerBuild] [ShutdownDotNetAfterServerBuild]
[GitHubActions("ci", GitHubActionsImage.UbuntuLatest, [GitHubActions("ci", GitHubActionsImage.UbuntuLatest,
OnPushBranches = new[] {"master", "releases/*"},
OnPullRequestBranches = new[] {"master", "releases/*"}, OnPullRequestBranches = new[] {"master", "releases/*"},
AutoGenerate = true, AutoGenerate = true,
InvokedTargets = new[] {nameof(Ci)}, InvokedTargets = new[] {nameof(Ci)},
@ -95,7 +94,7 @@ class Build : NukeBuild
}); });
Target Ci => _ => _ Target Ci => _ => _
.DependsOn(Package); .DependsOn(Test);
Target CiPublish => _ => _ Target CiPublish => _ => _
.DependsOn(Publish); .DependsOn(Publish);