polaris-mirror/make_release.ps1
Antoine Gersant b2ee2fe701
Automate release process (#62)
Added Github Actions workflow to generate release
2020-01-20 18:21:47 -08:00

9 lines
300 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 submodule update --recursive --remote
git tag -a $POLARIS_VERSION -m "Polaris $POLARIS_VERSION"
git push origin $POLARIS_VERSION