Skip to content

Commit 58e6d8e

Browse files
committed
Comment out GPG key usage in Maven workflow and pom.xml due to issues
1 parent c25a2a4 commit 58e6d8e

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/publish-maven.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
server-id: central
5252
server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
5353
server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
54-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
55-
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
54+
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
55+
# gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5656

5757
- name: Set version in pom.xml
5858
if: ${{ github.event.inputs.version != '' }}
@@ -65,16 +65,13 @@ jobs:
6565
echo "version=$VERSION" >> $GITHUB_OUTPUT
6666
echo "Publishing version: $VERSION" >> $GITHUB_STEP_SUMMARY
6767
68-
- name: Build and verify
69-
run: mvn verify -DskipTests
70-
71-
- name: Deploy to Maven Central
72-
run: mvn -X deploy -DskipTests -Prelease
68+
- name: Build and Deploy to Maven Central
69+
run: mvn -X verify deploy -DskipTests -Prelease
7370
env:
7471
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
7572
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
76-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
77-
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
73+
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
74+
# MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
7875

7976
github-release:
8077
name: Create GitHub Release

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
</execution>
187187
</executions>
188188
</plugin>
189+
<!--
189190
<plugin>
190191
<groupId>org.apache.maven.plugins</groupId>
191192
<artifactId>maven-gpg-plugin</artifactId>
@@ -200,6 +201,7 @@
200201
</execution>
201202
</executions>
202203
</plugin>
204+
-->
203205
<plugin>
204206
<groupId>org.sonatype.central</groupId>
205207
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)