polaris/make_release.ps1
2020-02-01 19:28:31 -08:00

8 lines
258 B
PowerShell

Get-ChildItem "Cargo.toml" | ForEach-Object {
$conf = $_ | Get-Content -raw
$conf -match 'version\s+=\s+"(.*)"' | out-null
$script:POLARIS_VERSION = $matches[1]
}
git tag -a $POLARIS_VERSION -m "Polaris $POLARIS_VERSION"
git push origin $POLARIS_VERSION