Skip to content

Commit aa17926

Browse files
committed
chore(ci): add release workflow and changelog file
1 parent a1dfcb4 commit aa17926

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
name: Publish Release
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: write
15+
pull-requests: read
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4.2.2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Generate Changelog
24+
id: changelog
25+
uses: mikepenz/release-changelog-builder-action@v5
26+
with:
27+
mode: "COMMIT"
28+
29+
- name: Update Changelog
30+
uses: stefanzweifel/changelog-updater-action@v1.12.0
31+
with:
32+
latest-version: ${{ github.ref_name }}
33+
release-notes: ${{ steps.changelog.outputs.changelog }}
34+
35+
- name: Commit Changes
36+
uses: stefanzweifel/git-auto-commit-action@v5.2.0
37+
with:
38+
branch: main
39+
commit_message: "chore(main): release ${{ github.ref_name }}"
40+
file_pattern: CHANGELOG.md

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog

0 commit comments

Comments
 (0)