From d3954b73237fb2532a80b49cc8a31818d4054895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Fr=C4=85k?= Date: Tue, 10 May 2022 17:36:29 +0200 Subject: [PATCH] build: Import GPG key earlier in maven.yml --- .github/workflows/publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 848c553..936618c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,12 @@ jobs: run: | git config --local user.email "actions@github.com" git config --local user.name "GitHub Action" + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v2 + env: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: Set POM version to release version run: mvn versions:set -DnewVersion=${GITHUB_REF##*/} - name: Replace 'since SNAPSHOT' occurrences with 'since ${{ github.ref_name }}' @@ -29,12 +35,6 @@ jobs: run: | git add pom.xml ./\*.java ./\*.md git commit -m "Set version to $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" - - name: Import GPG key - id: import_gpg - uses: crazy-max/ghaction-import-gpg@v2 - env: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: Publish package run: mvn -B deploy -P release-sign-artifacts env: