diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 4510d06b..1a659e6a 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -13,7 +13,7 @@ jobs: with: distribution: temurin java-version: 8 - server-id: ossrh + server-id: sonatype-nexus-staging server-username: 'OSSRH_USER' server-password: 'OSSRH_PASSWORD' gpg-passphrase: 'GPG_PASSWORD' @@ -21,9 +21,7 @@ jobs: - name: debug settings.xml run: cat /home/runner/.m2/settings.xml - name: Publish to Maven Central Repo - run: | - echo $GPG_SECRET | gpg --import - mvn clean deploy --batch-mode --activate-profiles deploy + run: mvn clean deploy --batch-mode --activate-profiles deploy env: OSSRH_USER: ${{ secrets.OSSRH_USER }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}