diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8eda9e5..2c68568 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -33,14 +33,14 @@ jobs: run: | VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) echo "VERSION=$VERSION" >> $GITHUB_ENV - + - name: Import GPG key - run: | - echo "$GPG_PRIVATE_KEY" | gpg --batch --import - echo "$GPG_PASSPHRASE" | gpg --batch --import --passphrase-fd 0 - env: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + run: | + echo "$GPG_PRIVATE_KEY" | gpg --batch --import + echo "$GPG_PASSPHRASE" | gpg --batch --import --passphrase-fd 0 + env: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: Build and Deploy with Maven env: