Skip to content

Commit

Permalink
add gpg config to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
angeliski committed Oct 25, 2024
1 parent 26e6ea1 commit a78b161
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonatype-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 5 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@
<profile>
<!-- required, used in .github/workflows/sonatype-publish.yml -->
<id>sonatypeDeploy</id>
<properties>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
<gpg.keyname>${env.GPG_KEY_ID}</gpg.keyname>
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
</properties>
<build>
<plugins>
<plugin>
Expand All @@ -460,19 +465,6 @@
<waitUntil>published</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down

0 comments on commit a78b161

Please sign in to comment.