From f7c53cd1c0659d3a209f7de018d3be9db9911a44 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sat, 7 Jan 2023 09:10:44 +0100 Subject: [PATCH] Automatic changelog --- .github/changelog-configuration.json | 32 ------------------------ .github/release.yml | 16 ++++++++++++ .github/workflows/Android-CI-release.yml | 14 +++-------- .github/workflows/Android-CI.yml | 4 +-- 4 files changed, 21 insertions(+), 45 deletions(-) delete mode 100644 .github/changelog-configuration.json create mode 100644 .github/release.yml diff --git a/.github/changelog-configuration.json b/.github/changelog-configuration.json deleted file mode 100644 index 8bf5d03..0000000 --- a/.github/changelog-configuration.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "categories": [ - { - "title": "## 🚀 Features", - "labels": [ - "feature", - "enhancement" - ] - }, - { - "title": "## 🐛 Fixes", - "labels": [ - "fix", - "bug" - ] - }, - { - "title": "## 💬 Maintenance", - "labels": [ - "maintenance" - ] - } - ], - "ignore_labels": [ - "dependencies", - "gradle-wrapper" - ], - "sort": "ASC", - "template": "${{CHANGELOG}}", - "pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", - "empty_template": "- no changes" -} diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..d62e3ab --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,16 @@ +changelog: + exclude: + labels: + - ignore-for-release + authors: + - someuser + categories: + - title: Breaking Changes 🛠 + labels: + - breaking-change + - title: Exciting New Features 🎉 + labels: + - enhancement + - title: Other Changes + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/Android-CI-release.yml b/.github/workflows/Android-CI-release.yml index 516ad69..64a4a0d 100644 --- a/.github/workflows/Android-CI-release.yml +++ b/.github/workflows/Android-CI-release.yml @@ -1,4 +1,4 @@ -name: Changelog vs Release +name: Release on: push: @@ -14,14 +14,6 @@ jobs: with: fetch-depth: 0 - - name: Build Changelog - id: github_release - uses: mikepenz/release-changelog-builder-action@main - with: - configuration: ".github/changelog-configuration.json" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Install JDK ${{ matrix.java_version }} uses: actions/setup-java@v3 with: @@ -29,10 +21,10 @@ jobs: java-version: 11 - name: Install Android SDK - uses: malinskiy/action-android/install-sdk@release/0.1.2 + uses: malinskiy/action-android/install-sdk@release/0.1.4 - name: Build project - run: ./gradlew clean build + run: ./gradlew assembleRelease env: VERSION: ${{ github.ref }} diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml index 7c49c2a..086fe08 100644 --- a/.github/workflows/Android-CI.yml +++ b/.github/workflows/Android-CI.yml @@ -26,7 +26,7 @@ jobs: distribution: 'adopt' java-version: ${{ matrix.java_version }} - name: Install Android SDK - uses: malinskiy/action-android/install-sdk@release/0.1.2 + uses: malinskiy/action-android/install-sdk@release/0.1.4 - name: Build project run: ./gradlew assembleDebug @@ -47,6 +47,6 @@ jobs: distribution: 'adopt' java-version: ${{ matrix.java_version }} - name: Install Android SDK - uses: malinskiy/action-android/install-sdk@release/0.1.2 + uses: malinskiy/action-android/install-sdk@release/0.1.4 - name: Code checks run: ./gradlew check