Skip to content

Commit

Permalink
(build) Added ability to draft release on master branch
Browse files Browse the repository at this point in the history
this will automatically draft release notes whenever
we build on the master branch it isn't a tagged build
  • Loading branch information
AdmiringWorm committed Mar 4, 2018
1 parent 79e5246 commit d72ad72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.cake
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,12 @@ Codecov(new CodecovSettings {{
});

// Enable drafting a release when running on the master branch
if (BuildParameters.IsRunningOnAppVeyor &&
BuildParameters.IsMainRepository && BuildParameters.IsMasterBranch && !BuildParameters.IsTagged)
{
BuildParameters.Tasks.AppVeyorTask.IsDependentOn("Create-Release-Notes");
}


Build.RunDotNetCore();

0 comments on commit d72ad72

Please sign in to comment.