From f0e139244e76cdda337dea322bdb6e06c9efe172 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 26 Feb 2024 13:43:47 +0100 Subject: [PATCH] Publish a GitHub release after the Maven release --- .github/workflows/publish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e56f1c10..d3df80fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,6 +41,17 @@ jobs: SONATYPE_PASSWORD: ${{ secrets.OSSRH_TOKEN }} SONATYPE_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }} + - name: github-release + if: ${{ success() }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + export tag=$(git describe --tags --abbrev=0) + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${tag#v}" \ + --generate-notes + - name: rollback if: ${{ failure() }} run: ./mvnw --show-version --settings=${{github.workspace}}/settings.xml --file=pom.xml --activate-profiles=sign-artifacts,release,release-automation help:active-profiles release:rollback --batch-mode -Dstyle.color=always