From d6f63a58302d14d5f06ec6ef9b906a6db1771c12 Mon Sep 17 00:00:00 2001 From: DQinYuan <932087612@qq.com> Date: Fri, 27 Sep 2024 21:01:13 +0800 Subject: [PATCH] publish with token user and password --- .github/workflows/maven-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 379e0787..98a2ae15 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -23,6 +23,6 @@ jobs: - name: Publish to Maven Central Repo run: mvn clean deploy --batch-mode --activate-profiles deploy env: - OSSRH_USER: ${{ secrets.OSSRH_USER }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_USER: ${{ secrets.OSSRH_TOKEN_USER }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }} \ No newline at end of file