mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Trying to get gitversion to do what I want
This commit is contained in:
5
.github/GitVersion.yml
vendored
Normal file
5
.github/GitVersion.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
branches:
|
||||
master:
|
||||
tag: ''
|
||||
v2_develop:
|
||||
tag: 'alpha'
|
||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user