diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index e9c9239b8ff..0ebb7f08717 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -19,7 +19,7 @@ inputs: outputs: build-scan-url: description: 'The URL, if any, of the build scan produced by the build' - value: ${{ (inputs.publish == 'true' && steps.build-and-publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }} + value: ${{ (inputs.publish == 'true' && steps.publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }} version: description: 'The version that was built' value: ${{ steps.read-version.outputs.version }} @@ -38,13 +38,13 @@ runs: env: DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }} run: ./gradlew build - - name: Build and Publish - id: build-and-publish + - name: Publish + id: publish if: ${{ inputs.publish == 'true' }} shell: bash env: DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }} - run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository build publishAllPublicationsToDeploymentRepository + 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 shell: bash