Skip to content

Commit 1199ad7

Browse files
committed
Merge branch 'master' of https://github.com/contentstack/contentstack-management-java into fix/cs-44746-release-issue
2 parents c5f23bf + 1505c18 commit 1199ad7

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.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
@@ -283,6 +283,12 @@
283283
<goals>
284284
<goal>sign</goal>
285285
</goals>
286+
<configuration>
287+
<gpgArguments>
288+
<arg>--pinentry-mode</arg>
289+
<arg>loopback</arg>
290+
</gpgArguments>
291+
</configuration>
286292
</execution>
287293
</executions>
288294
</plugin>

0 commit comments

Comments
 (0)