We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 330aaff + 399c714 commit 64966e3Copy full SHA for 64966e3
1 file changed
.github/workflows/maven.yml
@@ -11,6 +11,8 @@ on:
11
12
jobs:
13
build:
14
+ permissions:
15
+ contents: read
16
strategy:
17
matrix:
18
java: [8, 11, 17, 21]
@@ -28,3 +30,15 @@ jobs:
28
30
cache: 'maven'
29
31
- name: Build
32
run: mvn ${{ env.maven_commands }}
33
+ release:
34
35
+ contents: write
36
+ needs: build
37
+ if: startsWith(github.ref, 'refs/tags')
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+ - name: Create a GitHub release
42
+ run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
43
+ env:
44
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments