Skip to content

Commit c19e5be

Browse files
test: workflow
1 parent a99c65a commit c19e5be

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/maven--package-publish.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ jobs:
1111
contents: read
1212
packages: write
1313
steps:
14-
- id: install-secret-key
15-
name: Install gpg secret key
16-
run: |
17-
# Install gpg secret key
18-
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
19-
# Verify gpg secret key
20-
gpg --list-secret-keys --keyid-format LONG
2114
- uses: actions/checkout@v3
2215
- name: Set up Maven Central Repository
2316
uses: actions/setup-java@v3
@@ -27,6 +20,7 @@ jobs:
2720
server-id: ossrh
2821
server-username: MAVEN_USERNAME
2922
server-password: MAVEN_PASSWORD
23+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
3024
gpg-passphrase: GPG_PASSPHRASE
3125
- name: Publish to Maven Central Repository
3226
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy

0 commit comments

Comments
 (0)