Skip to content

Commit c248e00

Browse files
ci: add GitHub Actions workflow to generate changelogs
1 parent 15b7329 commit c248e00

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Generate release notes
18+
uses: orhun/git-cliff-action@v4
19+
id: generate_release_notes
20+
with:
21+
args: -v --latest --strip header --github-repo "neoisrecursive/inertia-tempest"
22+
config: git-cliff-config.toml
23+
24+
- name: Clean up release notes
25+
run: |
26+
cat ${{ steps.generate_release_notes.outputs.changelog }}
27+
cat ${{ steps.generate_release_notes.outputs.changelog }} | sed '1,2d' > release_notes.txt
28+
29+
- name: Create release
30+
id: create_release
31+
uses: actions/create-release@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
body_path: release_notes.txt
36+
tag_name: ${{ github.ref }}
37+
release_name: ${{ github.ref }}

0 commit comments

Comments
 (0)