Skip to content

Commit

Permalink
ci: configure settings.xml for maven central deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasoares committed Oct 25, 2024
1 parent bae402c commit a45b877
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,16 @@ jobs:
- name: Copy .proto
run: mkdir -p java/src/main/proto && cp -r proto java/src/main/proto

- id: install-secret-key
name: Install gpg secret key
- name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.JRELEASER_GPG_SECRET_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- name: Create maven settings.xml
run: echo "${{secrets.MAVEN_CENTRAL_SETTINGS_XML}}" > ~/.m2/settings.xml

- name: Publish package
working-directory: java
run: mvn --no-transfer-progress --batch-mode -Dgpg.passphrase=${{ secrets.JRELEASER_GPG_PASSPHRASE }} clean deploy -Ppublication
Expand Down

0 comments on commit a45b877

Please sign in to comment.