@@ -24,6 +24,18 @@ inputs:
24
24
develocity-access-key :
25
25
required : false
26
26
description : ' The access key for authentication with ge.spring.io'
27
+ commercial-repository-username :
28
+ required : false
29
+ description : ' Username for authentication with the commercial repository'
30
+ commercial-repository-password :
31
+ required : false
32
+ description : ' Password for authentication with the commercial repository'
33
+ commercial-release-repository-url :
34
+ required : false
35
+ description : ' URL of the release repository'
36
+ commercial-snapshot-repository-url :
37
+ required : false
38
+ description : ' URL of the snapshot repository'
27
39
outputs :
28
40
build-scan-url :
29
41
description : ' The URL, if any, of the build scan produced by the build'
@@ -46,11 +58,21 @@ runs:
46
58
id : build
47
59
if : ${{ inputs.publish == 'false' }}
48
60
shell : bash
61
+ env :
62
+ COMMERCIAL_REPO_USERNAME : ${{ inputs.commercial-repository-username }}
63
+ COMMERCIAL_REPO_PASSWORD : ${{ inputs.commercial-repository-password }}
64
+ COMMERCIAL_RELEASE_REPO_URL : ${{ inputs.commercial-release-repository-url }}
65
+ COMMERCIAL_SNAPSHOT_REPO_URL : ${{ inputs.commercial-snapshot-repository-url }}
49
66
run : ./gradlew build
50
67
- name : Publish
51
68
id : publish
52
69
if : ${{ inputs.publish == 'true' }}
53
70
shell : bash
71
+ env :
72
+ COMMERCIAL_REPO_USERNAME : ${{ inputs.commercial-repository-username }}
73
+ COMMERCIAL_REPO_PASSWORD : ${{ inputs.commercial-repository-password }}
74
+ COMMERCIAL_RELEASE_REPO_URL : ${{ inputs.commercial-release-repository-url }}
75
+ COMMERCIAL_SNAPSHOT_REPO_URL : ${{ inputs.commercial-snapshot-repository-url }}
54
76
run : ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
55
77
- name : Read Version From gradle.properties
56
78
id : read-version
0 commit comments