From 69ff09149e171dbe26f325b90832ee1b6a026ff3 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Wed, 5 Jan 2022 15:37:33 +0100 Subject: [PATCH 1/3] Create GitHub release during release workflow --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0e048b..dcb0d4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,11 @@ jobs: MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + - name: Create GitHub release + uses: softprops/action-gh-release@v0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Commit next development version if: steps.deploy.outputs.exit_code == 0 run: | From d5d29bf8ee4f20524e8e5558848197e26b986f8e Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Mon, 10 Jan 2022 22:54:04 +0100 Subject: [PATCH 2/3] Generate release notes via GitHub instead of Release Drafter --- .github/release-drafter.yml | 5 ----- .github/release.yml | 10 ++++++++++ .github/workflows/build.yml | 7 ------- .github/workflows/release.yml | 1 + 4 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 .github/release-drafter.yml create mode 100644 .github/release.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index a234535..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,5 +0,0 @@ -exclude-labels: - - 'housekeeping' -template: | - ## What’s Changed - $CHANGES \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..69b2ae9 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,10 @@ +changelog: + exclude: + labels: + - housekeeping + authors: + - gluon-bot + categories: + - title: What’s Changed + labels: + - "*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 831b175..7130fb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,10 +38,3 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }} - - - name: Draft release - if: github.ref == 'refs/heads/master' - # Drafts your next Release notes as Pull Requests are merged into "master" - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcb0d4c..cb371c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,7 @@ jobs: uses: softprops/action-gh-release@v0 with: token: ${{ secrets.GITHUB_TOKEN }} + generate_release_notes: true - name: Commit next development version if: steps.deploy.outputs.exit_code == 0 From 42a4bdbe9ebae191708dbf7e1b82b23efd3ef32c Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Fri, 28 Jan 2022 19:54:42 +0100 Subject: [PATCH 3/3] Use correct token --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb371c6..d944c9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,7 @@ jobs: - name: Create GitHub release uses: softprops/action-gh-release@v0 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT }} generate_release_notes: true - name: Commit next development version