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}" \