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
on:
push:
branches:
- master
- 'releases/*'
pull_request:
branches:
- master

View File

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