Skip to content

Commit 22fdad1

Browse files
committed
Add release note generation to CI
1 parent cc6da5e commit 22fdad1

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
@@ -140,8 +140,36 @@ jobs:
140140
run: |
141141
python -m pip install --upgrade pip
142142
pip install --upgrade platformio
143-
143+
144144
- run: PLATFORMIO_SRC_DIR=examples/CaptivePortal PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
145145
- run: PLATFORMIO_SRC_DIR=examples/SimpleServer PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
146146
- run: PLATFORMIO_SRC_DIR=examples/Filters PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
147147
- run: PLATFORMIO_SRC_DIR=examples/StreamFiles PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
148+
149+
release:
150+
name: Release
151+
if: ${{ github.repository_owner == 'ESP32Async' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
152+
runs-on: ubuntu-latest
153+
needs: [arduino, platformio]
154+
permissions:
155+
contents: write
156+
steps:
157+
- name: Checkout
158+
uses: actions/checkout@v4
159+
160+
- name: Changelog
161+
id: github_release
162+
uses: mikepenz/release-changelog-builder-action@v5
163+
with:
164+
failOnError: true
165+
commitMode: true
166+
configuration: ".github/workflows/release-notes-config.json"
167+
168+
- name: Release
169+
uses: softprops/action-gh-release@v2
170+
with:
171+
body: ${{steps.github_release.outputs.changelog}}
172+
append_body: true
173+
make_latest: true
174+
draft: false
175+
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)