From 2e05e7b3f8f2aae38f33294f19419e2d638cb564 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Wed, 31 Jul 2024 16:14:58 +0200 Subject: [PATCH] pre import key --- .github/workflows/deploy_to_central.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_central.yaml b/.github/workflows/deploy_to_central.yaml index cc6a5163..07763f59 100644 --- a/.github/workflows/deploy_to_central.yaml +++ b/.github/workflows/deploy_to_central.yaml @@ -8,6 +8,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Install gpg secret key + run: | + cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import - name: Build with Maven run: mvn package - name: Set up Maven Central Repository @@ -18,12 +21,10 @@ jobs: server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - gpg-private-key: GPG_KEY gpg-passphrase: GPG_PASS - name: Publish package run: mvn deploy -Pdeploy env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - GPG_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }} GPG_PASS: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}