From 10da9ff830c0a29a8c8c9a1b492489ffc97aba6b Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Sun, 24 Dec 2023 00:56:53 +0800 Subject: [PATCH] add OSSRH_GPG_SECRET_KEY (#9) --- .github/workflows/maven_deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven_deploy.yml b/.github/workflows/maven_deploy.yml index f2debd9..6288848 100644 --- a/.github/workflows/maven_deploy.yml +++ b/.github/workflows/maven_deploy.yml @@ -16,7 +16,9 @@ jobs: with: ref: 'main' fetch-depth: 0 - + - name: Install gpg secret key + run: | + echo -n ${{ secrets.OSSRH_GPG_SECRET_KEY }} | base64 --decode | gpg --import - name: Setup Java uses: actions/setup-java@v1 with: @@ -26,7 +28,11 @@ jobs: server-password: MAVEN_CENTRAL_TOKEN - name: Deploy to Maven Central - run: mvn deploy + run: | + cat ~/.m2/settings.xml + echo $MAVEN_USERNAME + echo $MAVEN_CENTRAL_TOKEN + mvn clean deploy env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_TOKEN }} \ No newline at end of file