From d0b8be8c382129fa85b9472cc846ac3438226c65 Mon Sep 17 00:00:00 2001 From: eschleb Date: Tue, 1 Oct 2024 16:39:57 +0200 Subject: [PATCH] fix pipeline --- .../workflows/release-and-deploy-release.yml | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-and-deploy-release.yml b/.github/workflows/release-and-deploy-release.yml index 2414a95..e57946c 100644 --- a/.github/workflows/release-and-deploy-release.yml +++ b/.github/workflows/release-and-deploy-release.yml @@ -59,14 +59,26 @@ jobs: with: distribution: temurin java-version: 17 - server-id: central - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - gpg-passphrase: MAVEN_GPG_PASSPHRASE gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + - name: Maven setup + uses: s4u/maven-settings-action@v3.0.0 + with: + servers: | + [ + { + "id": "magnolia.enterprise.group", + "username": "${{secrets.MGNL_NEXUS_USER}}", + "password": "${{secrets.MGNL_NEXUS_PASS}}" + }, + { + "id": "central", + "username": "${{secrets.SONATYPE_USER}}", + "password": "${{secrets.SONATYPE_PASSWORD}}" + }, + { + "id": "gpg.passphrase", + "passphrase": "${{secrets.GPG_PASSPHRASE}}", + } + ] - name: Release Maven package - run: mvn deploy -Pdeploy - env: - MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} - MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file + run: mvn deploy -Pdeploy \ No newline at end of file