Skip to content

Commit

Permalink
ci(build): Add automated release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 21, 2024
1 parent 013e4f1 commit e5c07a4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/changelog-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://gabe565.github.io/changelog-generator/config.schema.json
filters:
exclude:
- "^docs"
- "^test"
groups:
- title: Features
order: 0
regexp: "^(feat)"
- title: Dependencies
order: 3
regexp: "\\(deps\\):"
- title: Fixes
order: 1
regexp: "^(fix|perf)"
- title: Others
order: 2
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,21 @@ jobs:
with:
name: dist
path: dist

release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
needs: [lint, build-docker, build]
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Changelog
id: changelog
uses: gabe565/changelog-generator@v1
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}

0 comments on commit e5c07a4

Please sign in to comment.