Skip to content

Commit

Permalink
added executable in plugin and sending it in the mvn command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar-Naik committed Jan 25, 2025
1 parent e8dea17 commit 48c0e6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ jobs:
server-password: ${{ secrets.OSSRH_TOKEN }}

- name: "🗽 Publish package"
run: mvn clean deploy -DskipTests -Prelease
run: |
mvn clean deploy -DskipTests -Prelease \
-Dgpg.executable=gpg \
-Dgpg.passphrase="${{ secrets.MAVEN_GPG_PASSPHRASE }}" \
-DgpgArguments="--pinentry-mode loopback"
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@
</execution>
</executions>
<configuration>
<executable>gpg</executable>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 48c0e6d

Please sign in to comment.