Skip to content

Commit

Permalink
Publish a GitHub release after the Maven release
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Feb 26, 2024
1 parent 404951c commit f0e1392
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0e1392

Please sign in to comment.