Skip to content

Commit

Permalink
ci: Attempt fix GPG error
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed May 30, 2024
1 parent 3893ac9 commit 95ab44a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.SIGNING_KEY }}
gpg-passphrase: GPG_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish package
env:
MAVEN_USERNAME: ${{ secrets.OSS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
GPG_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
run: mvn --no-transfer-progress --batch-mode deploy -P release-sign-artifacts
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
</executions>
<configuration>
<gpgArguments>
<arg>--batch</arg>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
Expand All @@ -270,7 +271,7 @@
<configuration>
<serverId>nexus-releases</serverId>
<nexusUrl>${nexusUrl}</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 95ab44a

Please sign in to comment.