From c4ea82a3d3beff74db97c91adc5c6273a79d676e Mon Sep 17 00:00:00 2001 From: DQinYuan <932087612@qq.com> Date: Sun, 7 Apr 2024 21:56:58 +0800 Subject: [PATCH] git action echo -n --- .github/workflows/maven-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 0a8c83e0..4df97484 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -22,7 +22,7 @@ jobs: run: cat /home/runner/.m2/settings.xml - name: Publish to Maven Central Repo run: | - echo $GPG_SECRET | base64 --decode | gpg --import + echo -n "$GPG_SECRET" | base64 --decode | gpg --import mvn clean deploy --batch-mode --activate-profiles deploy env: OSSRH_USER: ${{ secrets.OSSRH_USER }}