Skip to content

Commit 383ede5

Browse files
feat: add changelog and release github action
Signed-off-by: Dusan Malusev <[email protected]>
1 parent cb71346 commit 383ede5

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+
create_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 1
15+
- name: Get Tag
16+
if: startsWith(github.ref, 'refs/tags/v')
17+
uses: olegtarasov/[email protected]
18+
id: version_tag
19+
with:
20+
tagRegex: "v(.*)"
21+
- name: Upload Release Asset
22+
uses: softprops/action-gh-release@v1
23+
id: release
24+
with:
25+
name: "v${{ steps.version_tag.outputs.url }}"
26+
tag_name: "v${{ steps.version_tag.outputs.url }}"
27+
generate_release_notes: true
28+
append_body: true
29+
prerelease: false
30+
fail_on_unmatched_files: true
31+
- name: "Generate release changelog"
32+
uses: heinrichreimer/[email protected]
33+
with:
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
author: true
36+
unreleasedOnly: true
37+
releaseUrl: ${{ steps.release.outputs.url }}

0 commit comments

Comments
 (0)