From 89516104e8e956287ed13e44364a5a40189870dc Mon Sep 17 00:00:00 2001 From: marcus-j <18111840+marcus-j@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:43:02 +0100 Subject: [PATCH] fix: fix pipeline JDK set up sequence and name [AI:CoPilot] --- .github/workflows/maven-publish-github.yml | 2 +- .github/workflows/maven-publish-maven-central.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-publish-github.yml b/.github/workflows/maven-publish-github.yml index e9e664b..4b4a550 100644 --- a/.github/workflows/maven-publish-github.yml +++ b/.github/workflows/maven-publish-github.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 + - name: Set up JDK uses: actions/setup-java@v4 with: distribution: 'adopt' diff --git a/.github/workflows/maven-publish-maven-central.yml b/.github/workflows/maven-publish-maven-central.yml index 1fb2e41..17c8295 100644 --- a/.github/workflows/maven-publish-maven-central.yml +++ b/.github/workflows/maven-publish-maven-central.yml @@ -15,9 +15,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build with Maven - run: mvn package -B -ntp --file pom.xml - - name: Install gpg secret key run: | cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY2 }}" | base64 --decode) | gpg --batch --import @@ -33,6 +30,9 @@ jobs: server-password: MAVEN_PASSWORD settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Build with Maven + run: mvn package -B -ntp --file pom.xml + - name: Publish to Maven Central run: mvn deploy -B -ntp -P release-to-maven-central -s $GITHUB_WORKSPACE/settings.xml -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD2 }} -DskipTests env: