From 809f09f2a8183210edbc591a0d76a689f84c44cb Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Thu, 31 Aug 2023 11:55:52 +0200 Subject: [PATCH] Fixes for deploying releases from github. (#15) * fixes-for-deploy-from-github * Make it real --- .github/workflows/release.yml | 8 +++++++- pom.xml | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5014915..b098932 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,6 @@ on: push: tags: - 'v*' - workflow_dispatch: jobs: publish: @@ -23,6 +22,13 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Publish to the Maven Central Repository run: mvn -DskipTests=true --batch-mode deploy env: diff --git a/pom.xml b/pom.xml index 1b66282..8f116ba 100644 --- a/pom.xml +++ b/pom.xml @@ -150,6 +150,13 @@ org.apache.maven.plugins maven-gpg-plugin 1.6 + + + + --pinentry-mode + loopback + + sign-artifacts @@ -314,8 +321,7 @@ ossrh https://oss.sonatype.org/ - - false + true