Skip to content

Commit b105f24

Browse files
committed
💚 ci: add a release.yaml workflow to automate new releases
1 parent fe0caa1 commit b105f24

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: release
2+
3+
on: push
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
if: startsWith(github.ref, 'refs/tags/')
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
fetch-tags: true
18+
19+
- name: Setup uv
20+
uses: astral-sh/setup-uv@v5
21+
22+
- name: Setup Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version-file: ".python-version"
26+
27+
- name: Prepare release notes
28+
run: uvx --from commitizen --with cz-conventional-gitmoji cz changelog ${{ github.ref_name }} --file-name release-notes.md
29+
30+
- name: Create release
31+
uses: softprops/action-gh-release@v2
32+
with:
33+
body_path: release-notes.md

0 commit comments

Comments
 (0)