Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 8170ed9

Browse files
Update GitHub Deploy config
1 parent 16686bb commit 8170ed9

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16-
- name: Verify GPG Key
17-
run: gpg --list-secret-keys --keyid-format LONG
18-
19-
2016
- name: Set up Java
2117
uses: actions/setup-java@v4
2218
with:
@@ -29,9 +25,19 @@ jobs:
2925
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
3026
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
3127

28+
- name: Set up GPG
29+
run: |
30+
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
31+
echo "$GPG_PRIVATE_KEY" | gpg --batch --import-ownertrust
32+
env:
33+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
34+
35+
- name: Verify GPG Key
36+
run: gpg --list-secret-keys --keyid-format LONG
37+
3238

3339
- name: Build and Deploy
34-
run: mvn clean deploy -Psign-artifacts
40+
run: mvn clean deploy -Psign-artifacts,central
3541
env:
3642
GPG_TTY: $(tty)
3743
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}

0 commit comments

Comments
 (0)