From defeb87909a4456daeb09f6629d61f3fc37432ed Mon Sep 17 00:00:00 2001 From: soloturn Date: Fri, 11 Feb 2022 15:59:00 +0100 Subject: [PATCH] gradle, clean, maven publication, same version for build/sign --- .github/workflows/ci-gradle.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-gradle.yml b/.github/workflows/ci-gradle.yml index 7e3abc939..5ed7e5b72 100644 --- a/.github/workflows/ci-gradle.yml +++ b/.github/workflows/ci-gradle.yml @@ -101,7 +101,9 @@ jobs: - name: Create artifacts if: matrix.release_from_this_build - run: gradle -q build -x test + env: + POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }} + run: gradle -q clean build generateMetadataFileForMavenPublication generatePomFileForMavenPublication -Pversion=${POM_VERSION} -x test - name: Setup gpg if: matrix.release_from_this_build && env.ARTIFACT_SIGNING_KEY @@ -121,6 +123,7 @@ jobs: env: GPG_KEYNAME: ${{ steps.gpg.outputs.key_id }} GPG_PASSPHRASE: ${{ secrets.ARTIFACT_SIGNING_PASSPHRASE }} + POM_VERSION: ${{ needs.workflow_config.outputs.pom_version }} run: | gradle sign "-Pversion=${POM_VERSION}"\ "-Psigning.gnupg.keyName=${GPG_KEYNAME}" \