From 29532f587a87fc827aa6718f7917f68194e38629 Mon Sep 17 00:00:00 2001 From: Shitikanth Kashyap Date: Tue, 24 Sep 2024 10:43:28 +0530 Subject: [PATCH] Add environment variables for GPG private key and passphrase --- .github/workflows/maven.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4b9e78f..a0053c0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -32,10 +32,12 @@ jobs: server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Build with Maven - run: ./mvnw -V -B deploy + run: ./mvnw -V -B deploy -Dgpg.signer=bc env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph