Skip to content

Commit

Permalink
Add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 30, 2024
1 parent c50e667 commit 90233b4
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
configurationJson: |
{
"template": "#{{CHANGELOG}}",
"pr_template": "- #{{TITLE}} ##{{NUMBER}}",
"categories": [
{
"title": "## Features",
"labels": ["feature"]
},
{
"title": "## Enhancement",
"labels": ["enhancement"]
},
{
"title": "## Fixes",
"labels": ["fix"]
},
{
"title": "## Other",
"labels": ["other"]
}
]
}
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
body: ${{steps.github_release.outputs.changelog}}

0 comments on commit 90233b4

Please sign in to comment.