Skip to content

Commit 2a8a050

Browse files
hannesa2niqdev
andauthored
Release with auto generated changelog (#221)
Co-authored-by: niqdev <[email protected]>
1 parent d1cc096 commit 2a8a050

File tree

2 files changed

+37
-16
lines changed

2 files changed

+37
-16
lines changed

.github/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- someuser
7+
categories:
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- breaking-change
11+
- title: Exciting New Features 🎉
12+
labels:
13+
- enhancement
14+
- title: Other Changes
15+
labels:
16+
- "*"

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

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,39 @@ on:
77

88
jobs:
99
build:
10-
name: Publish release
11-
runs-on: ubuntu-latest
10+
name: Release
11+
runs-on: macOS-latest
12+
strategy:
13+
matrix:
14+
java_version: [ 11 ]
1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@v3
1518
with:
1619
fetch-depth: 0
17-
- name: Install JDK
18-
uses: actions/setup-java@v3
19-
with:
20-
distribution: 'adopt'
21-
java-version: 11
22-
- name: Get the version
20+
- name: Find Tag
2321
id: tagger
2422
uses: jimschubert/query-tag-action@v2
2523
with:
2624
skip-unshallow: 'true'
2725
abbrev: false
2826
commit-ish: HEAD
27+
- name: Install JDK ${{ matrix.java_version }}
28+
uses: actions/setup-java@v3
29+
with:
30+
distribution: 'adopt'
31+
java-version: ${{ matrix.java_version }}
2932
- name: Install Android SDK
30-
uses: malinskiy/action-android/install-sdk@release/0.1.1
33+
uses: malinskiy/action-android/install-sdk@release/0.1.4
3134
- name: Build project
32-
run: ./gradlew clean build
33-
env:
34-
VERSION: ${{ github.ref }}
35-
- run: |
36-
assetsAAR=$(find . -name *release.aar | while read -r asset ; do echo "-a $asset" ; done)
37-
hub release create ${assetsAAR} -m ${{steps.tagger.outputs.tag}} ${{steps.tagger.outputs.tag}}
35+
run: ./gradlew assembleRelease
36+
37+
- name: Create Release
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
tag_name: ${{steps.tagger.outputs.tag}}
41+
name: ${{steps.tagger.outputs.tag}}
42+
generate_release_notes: true
43+
files: ./mjpeg-view/build/outputs/aar/mjpeg-view-release.aar
3844
env:
3945
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
VERSION: ${{ github.ref }}

0 commit comments

Comments
 (0)