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 }}