Skip to content

Commit

Permalink
fix(build maven): add username and pass into deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
lony2003 committed Jun 3, 2024
1 parent 4f02514 commit c3c632d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
if: ${{ matrix.java == '17' }}
run: ./gradlew --scan publishAllPublicationsToGitHubPackagesRepository -x check -Psigning.gnupg.executable=gpg -Psigning.gnupg.keyName=${{ secrets.GPG_NAME }} -Psigning.gnupg.passphrase=${{ secrets.GPG_PASSWORD }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ publishing {
}
}

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

mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)

Expand Down

0 comments on commit c3c632d

Please sign in to comment.