diff --git a/.github/workflows/ci-maven-publish-release.yaml b/.github/workflows/ci-maven-publish-release.yaml
index df530ba2..add5090d 100644
--- a/.github/workflows/ci-maven-publish-release.yaml
+++ b/.github/workflows/ci-maven-publish-release.yaml
@@ -46,8 +46,15 @@ jobs:
with:
name: test-results
path: test-results.zip
- - name: Publish to the Maven Central Repository
- run: mvn --batch-mode -Prelease -DskipTests deploy
- env:
- MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
+
+ - name: Release Maven package
+ uses: samuelmeuli/action-maven-publish@v1
+ with:
+ gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg_passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
+ nexus_username: ${{ secrets.SONATYPE_USERNAME }}
+ nexus_password: ${{ secrets.SONATYPE_PASSWORD }}
+ server_id: ossrh
+ maven_profiles: release
+ maven_goals_phases: clean deploy
+ maven_args: -DskipTests
diff --git a/pom.xml b/pom.xml
index a08fa132..edb814ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -448,43 +448,24 @@
release
-
-
- net.nicoulaj.maven.plugins
- checksum-maven-plugin
- 1.11
-
-
- source-release-checksum
-
- artifacts
-
- post-integration-test
-
-
- MD5
- SHA-1
- SHA-512
-
- source-release
- true
- false
- true
-
-
-
-
- org.apache.maven.plugins
maven-gpg-plugin
3.1.0
+
+
+
+ --pinentry-mode
+ loopback
+
+
- sign-release-artifacts
+ sign-artifacts
sign
+ verify
@@ -522,9 +503,19 @@
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ ossrh
+ https://oss.sonatype.org/
+ true
+
+
-