Skip to content

Commit

Permalink
ci: create git tags and github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed Jan 27, 2024
1 parent 29d701d commit 979139b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bumpversion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump version

on:
push:
branches: [main]

jobs:
bump-version:
if: ${{ ! startsWith(github.event.head_commit.message , 'bump:') }}
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
permissions:
contents: write

steps:
- name: Check out
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@bc2616fec6b3effc9ad20380f19550a8b18cdbdf
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: CHANGELOG.md
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
body_path: "CHANGELOG.md"
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 979139b

Please sign in to comment.