-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathbuild.ps1
More file actions
17 lines (13 loc) · 872 Bytes
/
Copy pathbuild.ps1
File metadata and controls
17 lines (13 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
. "$PSScriptRoot\scripts\getReleaseNotes.ps1"
. "$PSScriptRoot\scripts\bumpVersion.ps1"
######################################################################
# Step 1: Grab release notes and update solution metadata
######################################################################
$releaseNotes = Get-ReleaseNotes -MarkdownFile (Join-Path -Path $PSScriptRoot -ChildPath "RELEASE_NOTES.md")
if ([string]::IsNullOrWhiteSpace($releaseNotes.Version) -or
[string]::IsNullOrWhiteSpace($releaseNotes.ReleaseNotes)) {
throw "Release notes must contain a version and release notes text."
}
# Inject release notes into Directory.Build.props.
UpdateVersionAndReleaseNotes -ReleaseNotesResult $releaseNotes -XmlFilePath (Join-Path -Path $PSScriptRoot -ChildPath "Directory.Build.props")
Write-Output "Updated release metadata for version $($releaseNotes.Version)."