Skip to content

Commit ccc8d88

Browse files
committed
Add GitHub release creation to Maven workflow
1 parent 330aaff commit ccc8d88

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ jobs:
2828
cache: 'maven'
2929
- name: Build
3030
run: mvn ${{ env.maven_commands }}
31+
release:
32+
needs: build
33+
if: startsWith(github.ref, 'refs/tags')
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Create a GitHub release
38+
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)