From 3cfb0949033dc9957c5506560482f54c3144ba8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Tue, 22 Oct 2024 13:58:45 +0200 Subject: [PATCH] Deploy locally before releasing with JReleaser (#766) --- .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()