From 11a7e2d4616e5bf043dea5aca2e9fa69e91d7280 Mon Sep 17 00:00:00 2001 From: Manoel Campos Date: Thu, 16 Mar 2023 10:17:14 -0300 Subject: [PATCH] Update deploy.yml config. Signed-off-by: Manoel Campos --- .github/workflows/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d3dd1ef..d5b8e79 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,13 @@ jobs: cache: 'maven' - id: install-secret-key name: Install gpg secret key - run: cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import + run: | + # The key to assing to OSSRH_GPG_SECRET_KEY can be got running on your PC: gpg -a --export-secret-keys KEY_ID + # The KEY_ID can be got from the GPG Keyhain. + # The OSSRH_GPG_SECRET_KEY_PASSWORD is in macOS keychain (GPG Key password) + # OSSRH_USERNAME and OSSRH_TOKEN (password) and is available at ~/.m2/settings.xml + cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import + gpg --list-keys - name: Publish package run: | # Set some environment variables needed by Nexus Staging Maven plugin on JDK 17,