mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
10 lines
278 B
PowerShell
10 lines
278 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 -d $POLARIS_VERSION
|
|
git push --delete origin $POLARIS_VERSION
|
|
git tag $POLARIS_VERSION
|
|
git push --tags
|