diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b3107a4..af192b7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -36,4 +36,7 @@ jobs: if: (github.ref_name == 'main' || github.event_name == 'pull_request') && matrix.os == 'windows-latest' run: ./Build/build-windows-installer.ps1 shell: pwsh - \ No newline at end of file + - name: Tag With SemVer + if: github.ref_name == 'main' + run: ./Build/tag-with-semver.ps1 + shell: pwsh diff --git a/Build/set-semver-tag.ps1 b/Build/tag-with-semver.ps1 similarity index 65% rename from Build/set-semver-tag.ps1 rename to Build/tag-with-semver.ps1 index 7f7aca4..4b5127a 100644 --- a/Build/set-semver-tag.ps1 +++ b/Build/tag-with-semver.ps1 @@ -1,5 +1,6 @@ dotnet tool update --global GitVersion.Tool $semVer = (dotnet-gitversion | ConvertFrom-Json).SemVer $tag = "v$semVer" -Write-Output "tag=$tag" >> $GITHUB_OUTPUT -Write-Output $tag \ No newline at end of file +git tag $tag -f +git push --tags +Write-Output "Tagged with $tag" \ No newline at end of file