Skip to content

Commit

Permalink
set up workflow with commitizen to release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fabridamicelli committed Apr 25, 2024
1 parent 5994356 commit 1d0d97d
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
name: release
name: Bump version and release

on:
push:
tags:
- "*.*.*"
- '[0-9].[0-9]+.[0-9]+**'

jobs:
build:
bump-version:
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Checkout
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1d0d97d

Please sign in to comment.