From ae83641c6f1747ee47fd50367a404cceff6b26d7 Mon Sep 17 00:00:00 2001 From: ariwk Date: Thu, 27 Jun 2024 14:14:04 +0200 Subject: [PATCH] ci: add deployment to Maven Central Refs: #26 --- .github/workflows/maven-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 56f99ef..8007dd2 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -17,6 +17,8 @@ jobs: distribution: adopt java-version: 17 cache: maven + gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PASSPHRASE }} - uses: whelk-io/maven-settings-xml-action@9dc09b23833fa9aa7f27b63db287951856f3433d # v22 with: repositories: > @@ -85,6 +87,3 @@ jobs: - name: Publish to Maven Central # if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') }} run: mvn -B sign-artifacts deploy -PmavenCentralDeploy - env: - gpg-private-key: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.COM_SONATYPE_CENTRAL_POLARION_OPENSOURCE_GPG_PASSPHRASE }}