-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft and Production Release targets
- Loading branch information
1 parent
a6b4f3f
commit daef5fc
Showing
6 changed files
with
175 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# The labels that will be used to include issues in release notes. | ||
issue-labels-include: | ||
- Feature | ||
- Enhancement | ||
- Bug | ||
- Build | ||
- Documentation | ||
# The labels that will NOT be used when including issues in release notes. | ||
issue-labels-exclude: | ||
- Refactor | ||
# Overrides default pluralization and header names for specific labels. | ||
issue-labels-alias: | ||
- name: Build | ||
header: Build | ||
plural: Build | ||
- name: Documentation | ||
header: Documentation | ||
plural: Documentation | ||
# Configuration values used when creating new releases | ||
create: | ||
include-footer: true | ||
footer-heading: Packages | ||
footer-content: >- | ||
There are two different packages available for the extension. | ||
<ul> | ||
<li>For a chocolatey install: `nunit-extension-nunit-v2-result-writer.{milestone}.nupkg` | ||
<li>For a nuget install: `NUnit.Extension.NUnitV2ResultWriter.{milestone}.nupkg` | ||
</ul> | ||
You may also download the extension from | ||
[chocolatey.org](https://chocolatey.org/packages/nunit-extension-nunit-v2-result-writer/) | ||
or [nuget.org](https://nuget.org/packages/NUnit.Extension.NUnitV2ResultWriter/). | ||
footer-includes-milestone: true | ||
milestone-replace-text: '{milestone}' | ||
include-sha-section: true | ||
sha-section-heading: "SHA256 Hashes of the release artifacts" | ||
sha-section-line-format: "- `{1}\t{0}`" | ||
allow-update-to-published: false | ||
# Configuration values used when exporting release notes | ||
export: | ||
include-created-date-in-title: true | ||
created-date-string-format: MMMM dd, yyyy | ||
perform-regex-removal: false | ||
# regex-text: '### Where to get it(\r\n)*You can .*\.' | ||
# multiline-regex: false | ||
# Configuration values used when closing a milestone | ||
close: | ||
# Whether to add comments to issues closed with the published milestone release. | ||
use-issue-comments: true | ||
issue-comment: |- | ||
:tada: This issue has been resolved in version {milestone} :tada: | ||
The release is available on: | ||
- [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone}) | ||
- [NuGet Package](https://www.nuget.org/packages/NUnit.Extension.NUnitV2ResultWriter/{milestone}) | ||
- [Chocolatey Package](https://chocolatey.org/packages/nunit-extension-nunit-v2-result-writer/{milestone}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
//////////////////////////////////////////////////////////////////// | ||
// TARGETS FOR DEVELOPER USE ON LOCAL MACHINE | ||
////////////////////////////////////////////////////////////////////// | ||
|
||
using System; | ||
|
||
// Dependent task for all local targets | ||
Task("MustBeLocalBuild") | ||
.Does<BuildParameters>((parameters) => | ||
{ | ||
if (!parameters.IsLocalBuild) | ||
throw new Exception($"{parameters.Target} may only be run locally!"); | ||
}); | ||
|
||
Task("CleanAll") | ||
.Description("Clean both configs and all obj directories") | ||
.IsDependentOn("MustBeLocalBuild") | ||
.Does<BuildParameters>((parameters) => | ||
{ | ||
Information("Cleaning all output directories"); | ||
CleanDirectory(parameters.ProjectDirectory + "bin/"); | ||
Information("Deleting object directories"); | ||
DeleteObjectDirectories(parameters); | ||
}); | ||
|
||
// Download existing draft release for modification or for use in | ||
// updating the CHANGES.md file. | ||
Task("DownloadDraftRelease") | ||
.Description("Download draft release for local use") | ||
.IsDependentOn("MustBeLocalBuild") | ||
.Does<BuildParameters>((parameters) => | ||
{ | ||
if (!parameters.IsReleaseBranch) | ||
throw new Exception("DownloadDraftRelease requires a release branch!"); | ||
string milestone = parameters.BranchName.Substring(8); | ||
GitReleaseManagerExport(parameters.GitHubAccessToken, GITHUB_OWNER, GITHUB_REPO, "DraftRelease.md", | ||
new GitReleaseManagerExportSettings() { TagName = milestone }); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters