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