Skip to content

Commit 1505c18

Browse files
Merge pull request #58 from contentstack/fix/CS-44646
fix: added fix for gpg signing issue
2 parents 6f95251 + f54a779 commit 1505c18

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
server-id: ossrh
2121
server-username: MAVEN_USERNAME
2222
server-password: MAVEN_PASSWORD
23+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2324
gpg-passphrase: GPG_PASSPHRASE
2425
- name: Publish to the Maven Central Repository
25-
run: mvn --batch-mode deploy
26+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
2627
env:
2728
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2829
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
@@ -37,7 +38,9 @@ jobs:
3738
java-version: "8"
3839
distribution: "adopt"
3940
server-id: github
41+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
42+
gpg-passphrase: GPG_PASSPHRASE
4043
- name: Publish to GitHub Packages
41-
run: mvn --batch-mode deploy
44+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
4245
env:
4346
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@
268268
<goals>
269269
<goal>sign</goal>
270270
</goals>
271+
<configuration>
272+
<gpgArguments>
273+
<arg>--pinentry-mode</arg>
274+
<arg>loopback</arg>
275+
</gpgArguments>
276+
</configuration>
271277
</execution>
272278
</executions>
273279
</plugin>

0 commit comments

Comments
 (0)