Skip to content

Commit 9db4ccb

Browse files
committed
chore: Fix GPG signing
1 parent 4da8590 commit 9db4ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ jobs:
5050
distribution: 'temurin' # As good as any other, see: https://github.com/actions/setup-java#supported-distributions
5151
java-package: 'jdk'
5252
java-version: '11'
53-
gpg-private-key: ${{ secrets.OSS_SONATYPE_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
54-
gpg-passphrase: ${{ secrets.OSS_SONATYPE_GPG_PASSPHRASE }} # env variable for GPG private key passphrase
5553
check-latest: true
5654
cache: 'maven'
5755

@@ -73,9 +71,11 @@ jobs:
7371
- name: Create release
7472
env:
7573
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
74+
MAVEN_GPG_KEY: ${{ secrets.OSS_SONATYPE_GPG_PRIVATE_KEY }}
75+
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSS_SONATYPE_GPG_PASSPHRASE }}
7676
run: |
7777
export TZ="Europe/Berlin"
78-
./mvnw -Prelease release:prepare release:perform -B -DreleaseVersion=${{ inputs.releaseversion }} -DskipITs=true -Darguments="-DskipTests=true -DskipITs=true"
78+
./mvnw -Prelease release:prepare release:perform -B -DreleaseVersion=${{ inputs.releaseversion }} -Dgpg.signer=bc -DskipITs=true -Darguments="-DskipTests=true -DskipITs=true -Dgpg.signer=bc"
7979
# write version info
8080
cat <<EOF >target/config.json
8181
{

0 commit comments

Comments
 (0)