diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index d60dcb7..e8cd6de 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -27,13 +27,17 @@ jobs:
cache: 'maven'
cache-dependency-path: ./pom.xml
server-id: ossrh # This id should match with the id in your pom.xml or settings.xml
- server-username: ${{ secrets.OSSRH_USERNAME }}
- server-password: ${{ secrets.OSSRH_TOKEN }}
- gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- gpg-passphrase: ${{ secrets.GPG_PWD }}
+ server-username: OSSRH_USERNAME # Env variable for username in deploy (Passes the environment variable name, not the value)
+ server-password: OSSRH_TOKEN # Env variable for token in deploy
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Value of the GPG private key to import
+ gpg-passphrase: GPG_PWD # Env variable for GPG private key passphrase
- name: Build with Maven Wrapper
run: ./mvnw clean install
- name: Deploy to Apache Maven
run: ./mvnw deploy -P release -Dgpg.skip=false # Using the profile `release` for using the necessary dependencies
+ env:
+ OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
+ GPG_PWD: ${{ secrets.GPG_PWD }}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 4c55754..2cd79ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -107,6 +107,13 @@
sign
+
+
+
+ --pinentry-mode
+ loopback
+
+