Skip to content

Commit e5c07a4

Browse files
committed
ci(build): Add automated release workflow
1 parent 013e4f1 commit e5c07a4

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/changelog-generator.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# yaml-language-server: $schema=https://gabe565.github.io/changelog-generator/config.schema.json
2+
filters:
3+
exclude:
4+
- "^docs"
5+
- "^test"
6+
groups:
7+
- title: Features
8+
order: 0
9+
regexp: "^(feat)"
10+
- title: Dependencies
11+
order: 3
12+
regexp: "\\(deps\\):"
13+
- title: Fixes
14+
order: 1
15+
regexp: "^(fix|perf)"
16+
- title: Others
17+
order: 2

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,21 @@ jobs:
8282
with:
8383
name: dist
8484
path: dist
85+
86+
release:
87+
name: Release
88+
if: startsWith(github.ref, 'refs/tags/')
89+
needs: [lint, build-docker, build]
90+
runs-on: ubuntu-24.04
91+
steps:
92+
- name: Checkout
93+
uses: actions/checkout@v4
94+
with:
95+
fetch-depth: 0
96+
- name: Generate Changelog
97+
id: changelog
98+
uses: gabe565/changelog-generator@v1
99+
- name: Release
100+
uses: softprops/action-gh-release@v2
101+
with:
102+
body: ${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)