Add workflow to release from GitHub Actions

Co-Authored-By: Moritz Halbritter <moritz.halbritter@broadcom.com>

Closes gh-40407
This commit is contained in:
Andy Wilkinson
2024-04-15 18:02:56 +01:00
parent bc5777d0cc
commit e75c9312e0
12 changed files with 353 additions and 6 deletions

View File

@@ -1,36 +1,33 @@
name: 'Build'
description: 'Builds the project, optionally publishing it to a local deployment repository'
inputs:
java-version:
required: false
type: string
default: '17'
description: 'The Java version to compile and test with'
java-toolchain:
required: false
type: boolean
default: false
description: 'Whether a Java toolchain should be used'
publish:
required: false
type: boolean
default: false
description: 'Whether to publish artifacts ready for deployment to Artifactory'
gradle-enterprise-secret-access-key:
required: false
type: string
description: 'The secret access key for authentication with ge.spring.io'
gradle-enterprise-cache-user:
required: false
type: string
description: 'The username for authentication with the remote build cache'
gradle-enterprise-cache-password:
required: false
type: string
description: 'The password for authentication with the remote build cache'
outputs:
build-scan-url:
description: 'The URL, if any, of the build scan produced by the build'
value: ${{ (inputs.publish && steps.build-and-publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
version:
description: 'The version that was built'
value: ${{ steps.read-version.outputs.version }}
runs:
using: composite