From 44acae80cfe4a08b209eb716051c8e583395d718 Mon Sep 17 00:00:00 2001 From: Julien Ponge Date: Thu, 21 Sep 2023 13:27:27 +0200 Subject: [PATCH] ci(release): fixes after 2.5.0-M2 - Typo in a workflow step - Delay git push - Ensure JReleaser has a reference to the previous release --- .build/justfile-for-release | 1 - .github/workflows/push-release-to-maven-central.yml | 2 +- .github/workflows/release.yml | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build/justfile-for-release b/.build/justfile-for-release index 0e0ede66f..87b0a5f0c 100644 --- a/.build/justfile-for-release +++ b/.build/justfile-for-release @@ -53,7 +53,6 @@ release: pre-release @echo "🚀 Release steps..." @echo "Commit release version and push upstream" git commit -am "chore(release): release Mutiny ${RELEASE_VERSION}" - git push @echo "Call JReleaser" ./mvnw -settings .build/maven-ci-settings.xml --batch-mode --no-transfer-progress -Pjreleaser jreleaser:full-release -pl :mutiny-project @echo "Bump to 999-SNAPSHOT and push upstream" diff --git a/.github/workflows/push-release-to-maven-central.yml b/.github/workflows/push-release-to-maven-central.yml index 911704269..bfa83518d 100644 --- a/.github/workflows/push-release-to-maven-central.yml +++ b/.github/workflows/push-release-to-maven-central.yml @@ -21,5 +21,5 @@ jobs: cache: maven - name: Install just uses: taiki-e/install-action@just - - name: Deploy tp Maven Central + - name: Deploy to Maven Central run: just -f .build/justfile-for-release -d . deploy-to-maven-central diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42bd44163..7fdb40b1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,7 @@ jobs: DEPLOY_WEBSITE: ${{ github.event.inputs.deployWebsite }} CLEAR_REVAPI: ${{ github.event.inputs.clearRevAPI }} JRELEASER_TAG_NAME: ${{ github.event.inputs.version }} + JRELEASER_PREVIOUS_TAG_NAME: ${{ github.event.inputs.previousVersion }} JRELEASER_GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} steps: