Skip to content

Commit 9e199c8

Browse files
committed
Add release note generation to CI
1 parent 7ec39af commit 9e199c8

File tree

2 files changed

+79
-1
lines changed

2 files changed

+79
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
build-arduino:
13+
arduino:
1414
name: ${{ matrix.config }}
1515
runs-on: ubuntu-latest
1616
strategy:
@@ -82,3 +82,31 @@ jobs:
8282
pip install --upgrade platformio
8383
8484
- run: PLATFORMIO_SRC_DIR=examples/Client PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
85+
86+
release:
87+
name: Release
88+
if: ${{ github.repository_owner == 'ESP32Async' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
89+
runs-on: ubuntu-latest
90+
needs: [arduino, platformio]
91+
permissions:
92+
contents: write
93+
steps:
94+
- name: Checkout
95+
uses: actions/checkout@v4
96+
97+
- name: Changelog
98+
id: github_release
99+
uses: mikepenz/release-changelog-builder-action@v5
100+
with:
101+
failOnError: true
102+
commitMode: true
103+
configuration: ".github/workflows/release-notes-config.json"
104+
105+
- name: Release
106+
uses: softprops/action-gh-release@v2
107+
with:
108+
body: ${{steps.github_release.outputs.changelog}}
109+
append_body: true
110+
make_latest: true
111+
draft: false
112+
prerelease: false
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## ⚡ Breaking Changes",
5+
"labels": [
6+
"break"
7+
]
8+
},
9+
{
10+
"title": "## 🚀 Features",
11+
"labels": [
12+
"feat"
13+
]
14+
},
15+
{
16+
"title": "## 🐛 Fixes",
17+
"labels": [
18+
"fix"
19+
]
20+
},
21+
{
22+
"title": "## 📚 Documentation",
23+
"labels": [
24+
"doc"
25+
]
26+
},
27+
{
28+
"title": "## 🛠 Under the hood",
29+
"labels": []
30+
}
31+
],
32+
"template": "${{CHANGELOG}}",
33+
"pr_template": "- [${{TITLE}}](https://github.com/mathieucarbou/${{REPO}}/commit/${{MERGE_SHA}})",
34+
"empty_template": "- no changes",
35+
"label_extractor": [
36+
{
37+
"pattern": "(.): (.+)",
38+
"target": "$1",
39+
"on_property": "title"
40+
},
41+
{
42+
"pattern": "(.) (.+)",
43+
"target": "$1",
44+
"on_property": "title"
45+
}
46+
],
47+
"tag_resolver": {
48+
"method": "semver"
49+
}
50+
}

0 commit comments

Comments
 (0)