Skip to content

Commit ac62904

Browse files
committed
supply the credentials and disable config cache
1 parent 25878e7 commit ac62904

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ jobs:
2222
java-version: '8'
2323
distribution: 'temurin'
2424
cache: gradle
25-
server-id: ossrh
26-
server-username: MAVEN_USERNAME
27-
server-password: MAVEN_PASSWORD
25+
- name: Setup Gradle
26+
uses: gradle/actions/setup-gradle@v3
2827
- name: Build
29-
run: ./gradlew publish
28+
run: ./gradlew --no-configuration-cache publish "-PsonatypeUsername=$SONATYPE_USERNAME" "-PsonatypePassword=$SONATYPE_PASSWORD"
3029
env:
31-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
32-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
30+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
31+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)