Skip to content

Commit 1316fcc

Browse files
Merge pull request #18 from contentstack/next
Release issue fix
2 parents 4bad2bb + 1e24a92 commit 1316fcc

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/maven-publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ jobs:
2222
with:
2323
java-version: '11'
2424
distribution: 'temurin'
25-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
26-
settings-path: ${{ github.workspace }} # location for the settings.xml file
25+
server-id: ossrh
26+
server-username: MAVEN_USERNAME
27+
server-password: MAVEN_PASSWORD
28+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
29+
gpg-passphrase: GPG_PASSPHRASE
2730

2831
- name: Build with Maven
2932
run: mvn -B package --file pom.xml
3033

3134
- name: Publish to GitHub Packages Apache Maven
32-
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
35+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
3336
env:
34-
GITHUB_TOKEN: ${{ github.token }}
37+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
38+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
39+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@
235235
<goals>
236236
<goal>sign</goal>
237237
</goals>
238+
<configuration>
239+
<gpgArguments>
240+
<arg>--pinentry-mode</arg>
241+
<arg>loopback</arg>
242+
</gpgArguments>
243+
</configuration>
238244
</execution>
239245
</executions>
240246
</plugin>

0 commit comments

Comments
 (0)