Skip to content

Commit

Permalink
update: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaro17f committed Jul 26, 2024
1 parent ade6f53 commit ee782e9
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,41 @@ jobs:
- name: Build
run: zig build -Doptimize=ReleaseSafe -Dtarget=${{ matrix.target }}

- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
commitMode: true
configurationJson: |
{
"template": "#{{CHANGELOG}}",
"categories": [
{
"title": "## Feature",
"labels": ["feat", "feature"]
},
{
"title": "## Fix",
"labels": ["fix", "bug"]
},
{
"title": "## Other",
"labels": []
}
],
"label_extractor": [
{
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"target": "$1"
}
],
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: zig-out/bin/*
files: zig-out/bin/*
body: ${{ steps.build_changelog.outputs.changelog }}

0 comments on commit ee782e9

Please sign in to comment.