Skip to content

Commit

Permalink
ci: improve tag pipelines
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Zacsh <[email protected]>
  • Loading branch information
calumcalder and jzacsh committed Feb 17, 2025
1 parent f03af73 commit 1996285
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ jobs:
fetch-depth: 0 # Fetch tags, which are required to calculate the new version
token: "${{ secrets.GITHUB_TOKEN }}"
- name: "Install commitizen"
run: pip install --user -U commitizen
run: |
pip install --user -U commitizen &&
cz version --verbose
- id: tag
name: "Tag release"
name: "Release: Publish new semver Git Tag"
run: |
VERSION=$(cz bump --get-next)
TAG="v${VERSION}"
git tag "${TAG}"
git push origin "${TAG}" --tags
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
NEW_VERSION=$(cz bump --get-next) || exit 1
TAG="v${NEW_VERSION}"
git tag "${TAG}" &&
git push origin "${TAG}" --tags &&
echo "version=${NEW_VERSION}" | tee "$GITHUB_OUTPUT"
release:
needs: bump_version
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1996285

Please sign in to comment.