File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments