Skip to content

Commit c96593b

Browse files
committed
Correctly configure setup of GPG
1 parent 3103a93 commit c96593b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/release-workflow.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ jobs:
5151
- name: Checkout
5252
uses: actions/checkout@v3
5353

54+
# Even though the build itself is done using the GraalVM JDK
55+
# (see below), we use the setup-java action to have GPG configured
56+
# so that it can be used from the maven-gpg-plugin.
57+
- name: Configure GPG
58+
uses: actions/setup-java@v3
59+
with:
60+
distribution: 'temurin'
61+
java-version: '17'
62+
gpg-private-key: ${{ secrets.PGP_KEY }}
63+
gpg-passphrase: PGP_KEY_PASSWORD
64+
overwrite-settings: false
65+
5466
- name: Setup JDK
5567
uses: graalvm/setup-graalvm@v1
5668
with:
@@ -94,6 +106,8 @@ jobs:
94106
cd tools/samm-cli/target
95107
chmod a+x samm
96108
tar cfvz samm-cli-linux.tar.gz samm
109+
env:
110+
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
97111

98112
- name: Upload staging directory and Linux binary
99113
uses: actions/upload-artifact@v3
@@ -184,8 +198,6 @@ jobs:
184198
server-id: ossrh
185199
server-username: OSSRH_USERNAME
186200
server-password: OSSRH_TOKEN
187-
gpg-private-key: ${{ secrets.PGP_KEY }}
188-
gpg-passphrase: PGP_KEY_PASSWORD
189201
overwrite-settings: false
190202

191203
- name: Fetch Linux Artifacts

0 commit comments

Comments
 (0)