From beccd8b984cdf6a7234f0779a37717a3f19eb78a Mon Sep 17 00:00:00 2001 From: Dennis Schiese <135758800+dschiese@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:21:49 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f7f4c88..9615c82 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -13,19 +13,22 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out repo - uses: actions/checkout@v4 - - - name: Set up JDK - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - server-id: ossrh - server-username: PjaIuxmy - server-password: XW48ruQRFnwU2A6BQ6+80rDgs71ptUKFtM2qwpmPmFvN - gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - - - name: Build and Deploy - run: mvn clean deploy -X --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up Maven Central Repository # Configures settings.xml with required credentials + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + server-id: ossrh + server-username: ${{ secrets.OSSRH_USERNAME }} + server-password: ${{ secrets.OSSRH_PASSWORD }} + gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + + - name: Print settings.xml + run: cat $HOME/.m2/settings.xml + + - name: Publish package + run: mvn clean deploy