Browse Source

Build faster when starting development of the next version

Closes gh-40813
3.1.x
Andy Wilkinson 2 years ago
parent
commit
375aa50289
  1. 8
      .github/actions/build/action.yml

8
.github/actions/build/action.yml

@ -19,7 +19,7 @@ inputs: @@ -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: @@ -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

Loading…
Cancel
Save