Use short-lived access token to authenticate with Develocity

Closes gh-41120
This commit is contained in:
Andy Wilkinson
2024-06-17 09:34:56 +01:00
parent 2bbeb7e78c
commit 270597e577
3 changed files with 6 additions and 11 deletions

View File

@@ -35,15 +35,11 @@ runs:
id: build
if: ${{ inputs.publish == 'false' }}
shell: bash
env:
DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }}
run: ./gradlew build
- name: Publish
id: publish
if: ${{ inputs.publish == 'true' }}
shell: bash
env:
DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }}
run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
- name: Read Version From gradle.properties
id: read-version