Skip to content

Commit 101f0e8

Browse files
publish workflow with release creation
1 parent 38faa47 commit 101f0e8

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,26 @@ jobs:
5959
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
6060
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
6161
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
62+
63+
release:
64+
name: Create GitHub Release
65+
needs: [publish]
66+
if: ${{ !cancelled() && !failure() }}
67+
runs-on: ubuntu-latest
68+
permissions:
69+
contents: write
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v6
73+
with:
74+
ref: ${{ github.event.inputs.tag }}
75+
fetch-depth: 0
76+
77+
- name: Create Release
78+
uses: softprops/action-gh-release@v2
79+
with:
80+
tag_name: ${{ github.event.inputs.tag }}
81+
name: ${{ github.event.inputs.tag }}
82+
generate_release_notes: true
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)