Skip to content

Commit f636624

Browse files
committed
Changelog
1 parent 0c82456 commit f636624

File tree

2 files changed

+53
-6
lines changed

2 files changed

+53
-6
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## 💡 Features",
5+
"labels": [
6+
"feature",
7+
"enhancement"
8+
]
9+
},
10+
{
11+
"title": "## 🐛 Fixes",
12+
"labels": [
13+
"fix",
14+
"bug"
15+
]
16+
},
17+
{
18+
"title": "## 💬 Maintenance",
19+
"labels": [
20+
"maintenance"
21+
]
22+
}
23+
],
24+
"ignore_labels": [
25+
"dependencies",
26+
"gradle-wrapper"
27+
],
28+
"sort": "ASC",
29+
"template": "${{CHANGELOG}}",
30+
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
31+
"empty_template": "- no changes"
32+
}

.github/workflows/Android-CI-release.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,32 @@ jobs:
1919
with:
2020
distribution: "adopt"
2121
java-version: 11
22+
- name: Build Changelog
23+
id: github_release
24+
uses: mikepenz/release-changelog-builder-action@main
25+
with:
26+
configuration: ".github/changelog-configuration.json"
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Get the version
30+
id: tagger
31+
uses: jimschubert/query-tag-action@v2
32+
with:
33+
skip-unshallow: 'true'
34+
abbrev: false
35+
commit-ish: HEAD
2236
- name: Install Android SDK
2337
uses: malinskiy/action-android/install-sdk@release/0.1.2
2438
- name: Build project
2539
run: ./gradlew clean build
2640
env:
2741
VERSION: ${{ github.ref }}
28-
- run: |
29-
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
30-
VERSION=$(echo $VERSION | cut -d'/' -f3)
31-
tag_name="${GITHUB_REF##*/}"
32-
hub release create ${assetsAAR} -m "$tag_name" "$tag_name"
42+
- name: Create Release
43+
uses: softprops/action-gh-release@v1
44+
with:
45+
tag_name: ${{steps.tagger.outputs.tag}}
46+
name: ${{steps.tagger.outputs.tag}}
47+
body: ${{steps.github_release.outputs.changelog}}
48+
files: MPChartLib/build/outputs/aar/MPChartLib-release.aar
3349
env:
3450
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
VERSION: ${{ github.ref }}

0 commit comments

Comments
 (0)