Skip to content

Commit

Permalink
fix(build maven): get workflow working
Browse files Browse the repository at this point in the history
  • Loading branch information
lony2003 committed Jun 3, 2024
1 parent c3c632d commit 15fb55c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Deploy to Maven Central with Gradle
if: ${{ matrix.java == '17' }}
run: ./gradlew --scan publishAllPublicationsToMavenCentralRepository -x check -Psigning.gnupg.executable=gpg -Psigning.gnupg.keyName=${{ secrets.GPG_NAME }} -Psigning.gnupg.passphrase=${{ secrets.GPG_PASSWORD }}
run: ./gradlew --scan publishAllPublicationsToMavenCentralRepository -x check -Psigning.gnupg.executable=gpg -Psigning.gnupg.keyName=${{ secrets.GPG_NAME }} -Psigning.gnupg.passphrase=${{ secrets.GPG_PASSWORD }} -PmavenCentralUsername=${{ secrets.OSSRH_USER }} -PmavenCentralPassword=${{ secrets.OSSRH_PASS }}
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
3 changes: 0 additions & 3 deletions deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ publishing {
}
}

mavenCentralUsername = System.getenv("OSSRH_USER")
mavenCentralPassword = System.getenv("OSSRH_PASS")

mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)

Expand Down

0 comments on commit 15fb55c

Please sign in to comment.