From db07c6618f252820ea4c9bc61eca02672d1c71df Mon Sep 17 00:00:00 2001 From: Chirag Jayswal Date: Sun, 18 Feb 2024 19:39:41 -0800 Subject: [PATCH] updated workflow --- .github/workflows/maven.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 934b1119..257e5e6a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,12 +39,7 @@ jobs: # Install gpg secret key cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY1 }}") | gpg --batch --import # Verify gpg secret key - gpg --list-secret-keys --keyid-format LONG - - name: Publish package - run: mvn --batch-mode deploy - env: - MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} - MAVEN_PASSWORD: ${{ secrets.SONATYPE_SEC }} + gpg --list-secret-keys --keyid-format LONG - name: Build with Maven run: | mvn \ @@ -52,6 +47,9 @@ jobs: --batch-mode \ -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \ clean verify deploy + env: + MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} + MAVEN_PASSWORD: ${{ secrets.SONATYPE_SEC }} # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive