Navigation Menu

Skip to content

Commit

Permalink
(docs) Added ability to create release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed May 13, 2019
1 parent 8f84278 commit 027d63c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GitReleaseManager.yaml
Expand Up @@ -3,7 +3,7 @@ create:
footer-heading: Where to get it
footer-content: >
You can download this release from
[nuget](https://nuget.org/packages/Cake.Warp/{milestone},
[nuget](https://nuget.org/packages/Cake.Warp/{milestone}),
or you can just reference it in a cake build script
with `#addin nuget:?package?Cake.Warp&version={milestone}`.
footer-includes-milestone: true
Expand All @@ -12,7 +12,7 @@ export:
include-created-date-in-title: true
created-date-string-format: yyyy-MM-dd
perform-regex-removal: true
regex-text: '### Where to get it(\r?\n)*You can .*\)'
regex-text: '[\r\n]*### Where to get it[\r\n]*You can .*`\.[\r\n]*'
multiline-regex: true
issue-labels-include:
- Breaking Change
Expand Down
7 changes: 6 additions & 1 deletion recipe.cake
Expand Up @@ -22,9 +22,14 @@ BuildParameters.SetParameters(context: Context,
shouldExecuteGitLink: false,
shouldRunCodecov: true,
shouldDeployGraphDocumentation: false,
shouldRunDotNetCorePack: true);
shouldRunDotNetCorePack: true,
shouldDownloadMilestoneReleaseNotes: true,
shouldDownloadFullReleaseNotes: true,
milestoneReleaseNotesFilePath: "./BuildArtifacts/MILESTONE.md",
fullReleaseNotesFilePath: "./CHANGELOG.md");

BuildParameters.PrintParameters(Context);
BuildParameters.Tasks.ExportReleaseNotesTask.IsDependentOn("Clean");

ToolSettings.SetToolSettings(context: Context,
dupFinderExcludePattern: new[] {
Expand Down
2 changes: 2 additions & 0 deletions src/Cake.Warp/Cake.Warp.csproj
Expand Up @@ -29,6 +29,8 @@
<PackageTags>cake;addin;warp;self-contained</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/cake-contrib/Cake.Warp.git</RepositoryUrl>
<MilestoneReleasePath>$(MSBuildProjectDirectory)/../../BuildArtifacts/MILESTONE.md</MilestoneReleasePath>
<PackageReleaseNotes Condition="EXISTS('$(MilestoneReleasePath)')">$([System.IO.File]::ReadAllText("$(MilestoneReleasePath)"))</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Cake.Core" Version="0.28.0" PrivateAssets="All" />
Expand Down

0 comments on commit 027d63c

Please sign in to comment.