From 2c5e501156c8565a0579d7748c93d32a718e6277 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 3 Dec 2024 22:33:25 +0400 Subject: [PATCH] Fix release --- .github/workflows/ci.yml | 6 ++++ pom.xml | 59 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 797ec0e..c455363 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,12 @@ jobs: echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf gpg-connect-agent reloadagent /bye + + + - name: Setup Maven settings.xml + run: | + mkdir -p ~/.m2 + echo "ossrh${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }}${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }}" > ~/.m2/settings.xml - name: Build and test run: mvn -B clean verify diff --git a/pom.xml b/pom.xml index 5fa0513..7fee41d 100644 --- a/pom.xml +++ b/pom.xml @@ -116,6 +116,65 @@ + + + + + release + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.0 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.3 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.1.0 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + ${env.MAVEN_GPG_PASSPHRASE} + + + + + + + + +