From a45b8775e609e47f46782da8dd75734ed8128c40 Mon Sep 17 00:00:00 2001 From: Lucas Soares Date: Fri, 25 Oct 2024 16:38:09 -0300 Subject: [PATCH] ci: configure settings.xml for maven central deployment --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dfaa938..1a6bbd6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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