You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
557 B
17 lines
557 B
4 years ago
|
[CmdletBinding()]
|
||
|
param (
|
||
|
[Parameter(Mandatory=$true)]
|
||
|
[string]
|
||
|
$version
|
||
|
)
|
||
|
|
||
|
Update-Changelog -ReleaseVersion $version -LinkMode Automatic -LinkPattern @{
|
||
|
FirstRelease = "https://github.com/rcdailey/trash-updater/releases/tag/v{CUR}"
|
||
|
NormalRelease = "https://github.com/rcdailey/trash-updater/compare/v{PREV}...v{CUR}"
|
||
|
Unreleased = "https://github.com/rcdailey/trash-updater/compare/v{CUR}...HEAD"
|
||
|
}
|
||
|
|
||
|
nbgv set-version $version
|
||
|
git commit -m "release: v$version" -- CHANGELOG.md version.json
|
||
|
git tag -m "release v$version" "v$version"
|