Skip to content

Commit 3602a91

Browse files
committed
Debug credentials
1 parent 32b0e35 commit 3602a91

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release_to_maven.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,17 @@ jobs:
4242
env:
4343
GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }}
4444

45-
- name: Verify Sonatype credentials
45+
- name: Debug credentials
4646
run: |
47-
echo "SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}"
48-
echo "SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}"
47+
echo "SONATYPE_USERNAME length: ${#SONATYPE_USERNAME}"
48+
echo "SONATYPE_PASSWORD length: ${#SONATYPE_PASSWORD}"
49+
if [[ -z "$SONATYPE_USERNAME" || -z "$SONATYPE_PASSWORD" ]]; then
50+
echo "Sonatype credentials are missing."
51+
exit 1
52+
fi
53+
env:
54+
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}
55+
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
4956

5057
- name: Build package
5158
run: ./gradlew clean build

0 commit comments

Comments
 (0)