diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 01486859..976a92b7 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -20,6 +20,11 @@ jobs: gpg-private-key: ${{ secrets.GPG_SECRET }} - name: debug settings.xml run: cat /home/runner/.m2/settings.xml + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_SECRET }} + passphrase: ${{ secrets.GPG_PASSWORD }} - name: Publish to Maven Central Repo run: mvn clean deploy --batch-mode --activate-profiles deploy env: