diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c5e6597..9eb768f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,9 +18,11 @@ jobs: server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Import GPG key + run: echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 -d | gpg --import --batch + - name: Publish run: mvn deploy -P release --batch-mode --no-transfer-progress env: diff --git a/.gitignore b/.gitignore index a530464..d1b4303 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ hs_err_pid* target .gradle build + +.env +gpg-key.b64 \ No newline at end of file