diff --git a/.github/workflows/maven-central-release.yml b/.github/workflows/maven-central-release.yml index 4e16e319..2d8efeaf 100644 --- a/.github/workflows/maven-central-release.yml +++ b/.github/workflows/maven-central-release.yml @@ -32,6 +32,13 @@ jobs: run: ./mvnw --batch-mode --no-transfer-progress clean install - name: Set release version run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.version }} + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + git_user_signingkey: true + git_commit_gpgsign: true - name: Commit & Push changes uses: actions-js/push@v1.4 with: