Commit c759568 1 parent 5ba7217 commit c759568 Copy full SHA for c759568
File tree 2 files changed +59
-9
lines changed
2 files changed +59
-9
lines changed Original file line number Diff line number Diff line change
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
+ " dependencies" ,
22
+ " gradle-wrapper"
23
+ ]
24
+ }
25
+ ],
26
+ "sort" : " ASC" ,
27
+ "template" : " ${{CHANGELOG}}" ,
28
+ "pr_template" : " - ${{TITLE}}\n - PR: #${{NUMBER}}" ,
29
+ "empty_template" : " - no changes"
30
+ }
Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : Changelog vs Release
2
2
3
3
on :
4
4
push :
5
5
tags :
6
6
- ' *'
7
7
8
8
jobs :
9
- build :
10
- name : Publish release
9
+ release :
11
10
runs-on : ubuntu-latest
12
11
steps :
13
12
- name : Checkout
14
13
15
14
with :
16
15
fetch-depth : 0
16
+
17
+ - name : Build Changelog
18
+ id : github_release
19
+ uses : mikepenz/release-changelog-builder-action@main
20
+ with :
21
+ configuration : " .github/changelog-configuration.json"
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+
17
25
- name : Install JDK ${{ matrix.java_version }}
18
26
uses : actions/setup-java@v1
19
27
with :
20
28
java-version : 1.8
29
+
21
30
- name : Install Android SDK
22
31
uses : malinskiy/action-android/install-sdk@release/0.1.0
32
+
23
33
- name : Build project
24
34
run : ./gradlew clean build
25
35
env :
26
36
VERSION : ${{ github.ref }}
27
- - run : |
28
- assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
29
- VERSION=$(echo $VERSION | cut -d'/' -f3)
30
- tag_name="${GITHUB_REF##*/}"
31
- hub release create ${assetsAAR} -m "$tag_name" "$tag_name"
37
+
38
+ - name : Get the version
39
+ id : tagger
40
+ uses : jimschubert/query-tag-action@v2
41
+ with :
42
+ skip-unshallow : ' true'
43
+ abbrev : false
44
+ commit-ish : HEAD
45
+
46
+ - name : Create Release
47
+ uses : softprops/action-gh-release@v1
48
+ with :
49
+ tag_name : ${{ github.ref }}
50
+ name : ${{steps.tagger.outputs.tag}}
51
+ body : ${{steps.github_release.outputs.changelog}}
52
+ files : touchview/build/outputs/aar/touchview-release.aar
32
53
env :
33
54
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
- VERSION: ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments