From 21862c006180eee49a811a3e1eccfe82c31e48d5 Mon Sep 17 00:00:00 2001 From: "jose.pereda" Date: Tue, 22 Oct 2024 12:48:03 +0200 Subject: [PATCH] Deploy locally before releasing with JReleaser --- .github/workflows/early-access.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/early-access.yml b/.github/workflows/early-access.yml index adb56c56f..e3ed1a06c 100644 --- a/.github/workflows/early-access.yml +++ b/.github/workflows/early-access.yml @@ -143,18 +143,12 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Release with JReleaser - env: - JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - mvn -B -ntp -pl :parent -DartifactsDir=artifacts jreleaser:release - - name: Deploy parent pom and Kit to local staging run: | mvn -B -ntp deploy -pl :parent -Dmaven.test.skip=true mvn -B -ntp deploy -fkit -Dmaven.test.skip=true - - name: Publish Kit with JReleaser + - name: Release with JReleaser env: JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }} @@ -163,7 +157,7 @@ jobs: JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }} JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }} run: | - mvn -B -ntp -pl :parent jreleaser:deploy + mvn -B -ntp -pl :parent -DartifactsDir=artifacts jreleaser:release - name: JReleaser output if: always()