From ccc8d88dbbd6c765fe53865e9af4452d0dbea6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Tue, 4 Nov 2025 20:06:53 +0000 Subject: [PATCH 1/3] Add GitHub release creation to Maven workflow --- .github/workflows/maven.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 65c8d3d8..ee9ac0cb 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,3 +28,13 @@ jobs: cache: 'maven' - name: Build run: mvn ${{ env.maven_commands }} + release: + needs: build + if: startsWith(github.ref, 'refs/tags') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Create a GitHub release + run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e43af6ed82f250adee7e37894c0b973f969af636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Tue, 4 Nov 2025 20:13:58 +0000 Subject: [PATCH 2/3] Give release step write permissions on contents --- .github/workflows/maven.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ee9ac0cb..52fc64de 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,6 +29,8 @@ jobs: - name: Build run: mvn ${{ env.maven_commands }} release: + permissions: + contents: write needs: build if: startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest From 399c714842963528b144012deebde4783cfd1a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Wed, 5 Nov 2025 16:27:48 +0000 Subject: [PATCH 3/3] Add permissions for build step of the workflow --- .github/workflows/maven.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 52fc64de..271ecc56 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,6 +11,8 @@ on: jobs: build: + permissions: + contents: read strategy: matrix: java: [8, 11, 17, 21]