From f4e77948b4f7bc21dcccf78db7286d42aa84f8af Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 15 May 2024 19:06:07 +0530 Subject: [PATCH] test: workflow --- .github/workflows/maven--package-publish.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/maven--package-publish.yml b/.github/workflows/maven--package-publish.yml index 0155e70f..e94ec9d7 100644 --- a/.github/workflows/maven--package-publish.yml +++ b/.github/workflows/maven--package-publish.yml @@ -11,13 +11,6 @@ jobs: contents: read packages: write steps: - - id: install-secret-key - name: Install gpg secret key - run: | - # Install gpg secret key - cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import - # Verify gpg secret key - gpg --list-secret-keys --keyid-format LONG - uses: actions/checkout@v3 - name: Set up Maven Central Repository uses: actions/setup-java@v3 @@ -27,6 +20,7 @@ jobs: server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE - name: Publish to Maven Central Repository run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy