Skip to content

Commit a081afa

Browse files
committed
1 parent d7cb601 commit a081afa

3 files changed

Lines changed: 30 additions & 42 deletions

File tree

.github/changelog-configuration.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.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: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ jobs:
1414
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
17+
- name: Check pre-release
18+
run: |
19+
echo "tag=${{steps.tagger.outputs.tag}}"
20+
if [[ ${{ steps.tagger.outputs.tag }} == *alpha* || ${{ steps.tagger.outputs.tag }} == *beta* ]]
21+
then
22+
prerelease=true
23+
else
24+
prerelease=false
25+
fi
26+
echo "PRE_RELEASE=$prerelease" >> $GITHUB_ENV
27+
echo "prerelease=$prerelease"
1728
- name: Install JDK ${{ matrix.java_version }}
1829
uses: actions/setup-java@v3
1930
with:
2031
distribution: 'adopt'
2132
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 }}
2933
- name: Get the version
3034
id: tagger
3135
uses: jimschubert/query-tag-action@v2
@@ -40,12 +44,12 @@ jobs:
4044
env:
4145
VERSION: ${{steps.tagger.outputs.tag}}
4246
- name: Create Release
43-
uses: softprops/action-gh-release@v1
47+
uses: softprops/action-gh-release@v0.1.14
4448
with:
4549
tag_name: ${{steps.tagger.outputs.tag}}
46-
prerelease: ${{steps.tagger.outputs.tag}} == *"alpha"* || ${{steps.tagger.outputs.tag}} == *"beta"*
50+
prerelease: ${{ env.PRE_RELEASE }}
4751
name: ${{steps.tagger.outputs.tag}}
48-
body: ${{steps.github_release.outputs.changelog}}
52+
generate_release_notes: true
4953
files: |
5054
LogcatCrashlyticLib/build/outputs/aar/LogcatCrashlytic-release.aar
5155
LogcatCountlyLib/build/outputs/aar/LogcatCountly-release.aar

0 commit comments

Comments
 (0)