diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d0ab2f..ccdea6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: architecture: x64 - name: 🚀 Deploy to Maven - run: mvn -B deploy -f pom.xml -s settings.xml + run: mvn -B deploy -f pom.xml -s settings.xml -P deploy env: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} diff --git a/pom.xml b/pom.xml index 88bcee4..4ec9a4a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,6 +4,60 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + + + deploy + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + UTF-8 @@ -43,17 +97,6 @@ HEAD - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - @@ -111,39 +154,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - ossrh - https://oss.sonatype.org/ - true - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - org.apache.maven.plugins @@ -174,4 +184,4 @@ - + \ No newline at end of file diff --git a/settings.xml b/settings.xml index bfbb0d1..e2dc109 100644 --- a/settings.xml +++ b/settings.xml @@ -13,10 +13,7 @@ - ossrh - - true - + deploy gpg ${env.GPG_PASSPHRASE}