From fc6decea47928583569c6f3e89b5eb57c3cc10b5 Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Tue, 18 Jun 2024 20:54:23 +0100 Subject: [PATCH] Improve GPG token handling --- .github/workflows/release.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28c290f..2829a88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Quarkiverse Release on: pull_request: - types: [closed] + types: [ closed ] paths: - '.github/project.yml' @@ -22,14 +22,7 @@ jobs: - uses: actions/checkout@v4 - - name: Import GPG key - id: import_gpg - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PASSPHRASE }} - - - name: Set up JDK 17 + - name: Set up Java uses: actions/setup-java@v4 with: distribution: temurin @@ -38,6 +31,8 @@ jobs: server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Configure Git author run: |