Skip to content

Commit

Permalink
check if secret exist
Browse files Browse the repository at this point in the history
  • Loading branch information
DQinYuan committed Apr 27, 2024
1 parent 75a5e7b commit e8a6082
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
gpg-private-key: ${{ secrets.GPG_SECRET }}
- name: debug settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Check if secret exists
run: |
if [[ -z "${{ secrets.GPG_SECRET }}" ]]; then
echo "Secret does not exist"
else
echo "Secret exists"
- name: Publish to Maven Central Repo
working-directory: /home/runner
run: mvn clean deploy --batch-mode --activate-profiles deploy
Expand Down

0 comments on commit e8a6082

Please sign in to comment.