Skip to content

Commit

Permalink
fix: properly create and push annotated tag (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
airtonix authored Sep 18, 2024
1 parent c814a21 commit 11ccf67
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
mise run build
mise run docs:build
DeployProd:
Release:
needs:
- Process
- QA
Expand Down Expand Up @@ -117,8 +117,15 @@ jobs:
- name: Tag Dev Version
if: ${{ needs.Process.outputs.prs_created == 'true' }}
run: |
git tag -a ${{ steps.get_release_version.outputs.Version }}
git push origin ${{ steps.get_release_version.outputs.Version }}
# delete remote tag
git push --delete origin ${{ steps.get_release_version.outputs.Version }} || true
# delete local tag
git tag -d ${{ steps.get_release_version.outputs.Version }} || true
# create new tag
git tag -a ${{ steps.get_release_version.outputs.Version }} -m "Release Candidate ${{ steps.get_release_version.outputs.Version }}"
# push new tag
git push origin tag ${{ steps.get_release_version.outputs.Version }}
# we want to publish the docs on every change to the master branch
- name: Docs
Expand Down

0 comments on commit 11ccf67

Please sign in to comment.