Skip to content

Commit 885104c

Browse files
committed
ci: added patch release
1 parent 0febbcc commit 885104c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Patch Release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
name: "Bump minor version and create changelog with commitizen"
11+
steps:
12+
- name: Check out
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
token: "${{ secrets.GITHUB_TOKEN }}"
17+
- id: cz
18+
name: Create bump and changelog
19+
uses: commitizen-tools/commitizen-action@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
changelog_increment_filename: body.md
23+
increment: PATCH
24+
- name: Release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
tag: v${{ env.REVISION }}
28+
bodyFile: "body.md"
29+
skipIfReleaseExists: true
30+
- name: Print Version
31+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
32+
# TODO: create pypi source distribution

0 commit comments

Comments
 (0)