Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gowridurgad authored Apr 22, 2024
1 parent d46ce90 commit ecf8bc4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ jobs:
server-password: 'OSSRH_PASSWORD'
gpg-passphrase: 'MAVEN_GPG_PASSPHRASE'
gpg-private-key: ${{ secrets.GPG_SECRET }}
run: |
[[ -z "${secrets.GPG_SECRET}" ]] && echo 'does not exist' || echo "exists"
- name: Check if secret exists
run: |
if [[ -z "${{ secrets.GPG_SECRET }}" ]]; then
echo "Secret does not exist"
else
echo "Secret exists"
- name: debug settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Publish to Maven Central Repo
Expand All @@ -27,3 +31,4 @@ jobs:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}

0 comments on commit ecf8bc4

Please sign in to comment.