From 6a6087b3063bc14eff59dbb5490c5b557f8ce782 Mon Sep 17 00:00:00 2001 From: THOREL Arnaud Date: Thu, 16 Nov 2023 16:34:27 +0100 Subject: [PATCH] chore(deploy): add release prepare --- .github/workflows/maven-publish.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 0db8158..69836b9 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -21,8 +21,11 @@ jobs: java-version: '17' distribution: 'temurin' server-id: ossrh - server-username: ${{ secrets.OSSRH_USERNAME }} - server-password: ${{ secrets.OSSRH_TOKEN }} gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} - - name: Publish to Maven Central - run: mvn --batch-mode deploy \ No newline at end of file + - name: Release / Deploy + run: mvn release:prepare release:perform -B -s .github/deploy_settings.xml -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + GITHUB_ACTOR: ${{ github.actor }} + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file