Skip to content

Commit

Permalink
Switch to user token for uploading to Maven Central.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmonz committed Jun 15, 2024
1 parent 23d1055 commit 06ba526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: clean
run: ./gradlew clean
Expand All @@ -39,8 +39,8 @@ jobs:

- name: release
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SonatypeUsername }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SonatypePassword }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SigningKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SigningPassword }}
run: ./gradlew -Pversion=0.0.${{ github.run_number }} publishToSonatype closeAndReleaseSonatypeStagingRepository

0 comments on commit 06ba526

Please sign in to comment.