Skip to content

Commit 3376617

Browse files
authored
Create changelog.yaml
1 parent 5048967 commit 3376617

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/changelog.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Changelog
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
changelog:
10+
name: Generate and publish changelog
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Generate a changelog
21+
uses: orhun/git-cliff-action@v3
22+
id: git-cliff
23+
with:
24+
config: cliff.toml
25+
args: --verbose --latest --strip header
26+
env:
27+
OUTPUT: CHANGES.md
28+
GITHUB_REPO: ${{ github.repository }}
29+
30+
- name: Polish changelog
31+
shell: bash
32+
run: sed -i '1,2d' CHANGES.md
33+
34+
- name: Upload the changelog
35+
uses: ncipollo/release-action@v1
36+
with:
37+
# draft: true
38+
allowUpdates: true
39+
bodyFile: CHANGES.md

0 commit comments

Comments
 (0)