diff --git a/.github/changelog-configuration.json b/.github/changelog-configuration.json deleted file mode 100644 index 31dda4f4..00000000 --- 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}} #${{NUMBER}}", - "empty_template": "- no changes" -} diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..d62e3abf --- /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 bfd801c7..882446a0 100644 --- a/.github/workflows/Android-CI-release.yml +++ b/.github/workflows/Android-CI-release.yml @@ -14,18 +14,22 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Check pre-release + run: | + echo "tag=${{steps.tagger.outputs.tag}}" + if [[ ${{ steps.tagger.outputs.tag }} == *alpha* || ${{ steps.tagger.outputs.tag }} == *beta* ]] + then + prerelease=true + else + prerelease=false + fi + echo "PRE_RELEASE=$prerelease" >> $GITHUB_ENV + echo "prerelease=$prerelease" - name: Install JDK ${{ matrix.java_version }} uses: actions/setup-java@v3 with: distribution: 'adopt' java-version: 11 - - 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: Get the version id: tagger uses: jimschubert/query-tag-action@v2 @@ -40,12 +44,12 @@ jobs: env: VERSION: ${{steps.tagger.outputs.tag}} - name: Create Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v0.1.14 with: tag_name: ${{steps.tagger.outputs.tag}} - prerelease: ${{steps.tagger.outputs.tag}} == *"alpha"* || ${{steps.tagger.outputs.tag}} == *"beta"* + prerelease: ${{ env.PRE_RELEASE }} name: ${{steps.tagger.outputs.tag}} - body: ${{steps.github_release.outputs.changelog}} + generate_release_notes: true files: | LogcatCrashlyticLib/build/outputs/aar/LogcatCrashlytic-release.aar LogcatCountlyLib/build/outputs/aar/LogcatCountly-release.aar