Skip to content

Commit

Permalink
trying to fix the gpg issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar-Naik committed Jan 25, 2025
1 parent 47cd4a4 commit 16a05bc
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,33 @@ jobs:
with:
fetch-depth: 0

- name: "🔑 Import GPG key"
run: |
echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" | base64 --decode | gpg --batch --import
- name: "🔍 Verify GPG keys"
run: gpg --list-secret-keys --keyid-format LONG

- name: "🛠 Configure GPG"
run: |
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
echo "use-agent" >> ~/.gnupg/gpg.conf
gpgconf --reload gpg-agent
- name: "☕ Set up java"
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: "🗽 Publish package"
run: mvn clean deploy -DskipTests -Prelease
run: mvn clean deploy -DskipTests -Prelease -X
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down

0 comments on commit 16a05bc

Please sign in to comment.