From a78b161704bda9e0b8cfef398588289ca616e182 Mon Sep 17 00:00:00 2001 From: Rogerio Angeliski Date: Fri, 25 Oct 2024 19:30:46 -0300 Subject: [PATCH] add gpg config to profile --- .github/workflows/sonatype-publish.yml | 2 +- pom.xml | 18 +++++------------- 2 files changed, 6 insertions(+), 14 deletions(-) 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