Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE

- name: Configure GPG for headless operation
run: |
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
gpg-connect-agent reloadagent /bye || true

- name: Configure Maven settings with mirror
run: |
mkdir -p ~/.m2
Expand Down Expand Up @@ -92,7 +98,7 @@ jobs:
run: |
for i in 1 2 3; do
echo "Attempt $i: Deploying to Maven Central..."
if mvn clean deploy -Prelease -DskipTests -B -U; then
if mvn clean deploy -Prelease -DskipTests -B -U -Dgpg.passphrase="${GPG_PASSPHRASE}"; then
echo "Deploy successful"
break
fi
Expand Down
Loading