diff --git a/.github/workflows/sonatype-publish.yml b/.github/workflows/sonatype-publish.yml index 0f1dcd31..5849c44e 100644 --- a/.github/workflows/sonatype-publish.yml +++ b/.github/workflows/sonatype-publish.yml @@ -37,7 +37,7 @@ jobs: git-release-bot-name: "bot-release" git-release-bot-email: "release@caelum.com.br" - maven-args: "-DskipTests -DskipITs -Dmaven.deploy.skip=true -Psonatype-oss-release" + maven-args: "-DskipTests -DskipITs -Dmaven.deploy.skip=true -PsonatypeDeploy" ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} gpg-enabled: true diff --git a/pom.xml b/pom.xml index faba3ffa..d3bf7d8d 100644 --- a/pom.xml +++ b/pom.xml @@ -446,6 +446,11 @@ sonatypeDeploy + + ${env.GPG_PASSPHRASE} + ${env.GPG_KEY_ID} + ${env.GPG_PASSPHRASE} + @@ -460,19 +465,6 @@ published - - org.apache.maven.plugins - maven-source-plugin - 3.3.0 - - - attach-sources - - jar-no-fork - - - - org.apache.maven.plugins maven-javadoc-plugin