Skip to content

Commit

Permalink
Specifiy tag name in release action
Browse files Browse the repository at this point in the history
  • Loading branch information
elzik committed Oct 28, 2023
1 parent bceb23e commit 75fbcd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
run: ./Build/build-windows-installer.ps1
shell: pwsh
- name: Tag With SemVer
id: tag
if: github.ref_name == 'main'
run: ./Build/tag-with-semver.ps1
shell: pwsh
Expand All @@ -47,7 +48,10 @@ jobs:
Write-Output "github.ref:${{ github.ref }}"
$tag = git describe --tags --abbrev=0
Write-Output "tag:$tag"
Write-Output "steps.tag.outputs.tag:${{ steps.tag.outputs.tag }}"
shell: pwsh
- name: Release
uses: softprops/action-gh-release@v1
if: github.ref_name == 'main' || (github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
with:
tag_name: ${{ steps.tag.outputs.tag }}
2 changes: 2 additions & 0 deletions Build/tag-with-semver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ $tag = "v$semVer"
git tag $tag -f
git push --tags

Write-Output "tag=$tag" >> $GITHUB_OUTPUT

Write-Output "Tagged with $tag"

0 comments on commit 75fbcd3

Please sign in to comment.