From 93b7dbe7b1c496b180142f70e762de13d2ddad9a Mon Sep 17 00:00:00 2001 From: Geoffrey Huntley Date: Mon, 7 Nov 2016 21:25:15 +1100 Subject: [PATCH] bug: pull-requests were being published to the myget feed --- appveyor.yml | 2 +- build.cake | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 2b2d7e0936..553d652ebf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -72,4 +72,4 @@ - path: artifacts/* - path: '**/bin/*' - path: src/ReactiveUI.Events/Events_*.cs - test: off + test: off \ No newline at end of file diff --git a/build.cake b/build.cake index be51369b34..66aa28a4d3 100644 --- a/build.cake +++ b/build.cake @@ -38,6 +38,7 @@ var isRunningOnAppVeyor = AppVeyor.IsRunningOnAppVeyor; var isPullRequest = AppVeyor.Environment.PullRequest.IsPullRequest; var isRepository = StringComparer.OrdinalIgnoreCase.Equals("reactiveui/reactiveui", AppVeyor.Environment.Repository.Name); +var isDevelopBranch = StringComparer.OrdinalIgnoreCase.Equals("develop", AppVeyor.Environment.Repository.Branch); var isReleaseBranch = StringComparer.OrdinalIgnoreCase.Equals("master", AppVeyor.Environment.Repository.Branch); var isTagged = AppVeyor.Environment.Repository.Tag.IsTag; @@ -329,6 +330,7 @@ Task("PublishPackages") .WithCriteria(() => !local) .WithCriteria(() => !isPullRequest) .WithCriteria(() => isRepository) + .WithCriteria(() => isDevelopBranch || isReleaseBranch) .Does (() => {