1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

gradle, clean, maven publication, same version for build/sign

This commit is contained in:
soloturn 2022-02-11 15:59:00 +01:00
parent 6cfeabefc2
commit defeb87909

View File

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