Trying to get gitversion to do what I want

This commit is contained in:
Tigger Kindel
2023-06-07 09:51:11 -06:00
parent d732bdfe2f
commit 570de8f110
3 changed files with 10 additions and 3 deletions

5
.github/GitVersion.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
branches:
master:
tag: ''
v2_develop:
tag: 'alpha'

View File

@@ -22,6 +22,8 @@ jobs:
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
with:
useConfigFile: true
id: gitversion # step id used as reference for output values
- name: Display GitVersion outputs

View File

@@ -14,12 +14,12 @@ try {
Write-Host "Pulling latest from upstream branch $branch"
git pull upstream $branch
Write-Host "Tagging release with tag $tag"
git tag $tag -a -m $releaseMessage
Write-Host "Creating empty commit with message $releaseMessage"
git commit --allow-empty -m $releaseMessage
Write-Host "Tagging release with tag $tag"
git tag $tag -a -m $releaseMessage
Write-Host "Pushing changes to upstream"
git push --atomic upstream $branch $tag
} catch {