| 
1 |  | -name: Build with Gradle and Stage Release to Artifactory  | 
 | 1 | +name: CI Artifactory Build for Gradle  | 
2 | 2 | 
 
  | 
3 | 3 | on:  | 
4 | 4 |   workflow_call:  | 
5 | 5 |     inputs:  | 
6 | 6 |       releaseVersion:  | 
7 |  | -        description: 'Release version like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.'  | 
8 |  | -        required: true  | 
 | 7 | +        description: 'Release version like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc. If not specified this workflow acts as a SNAPSHOT build.'  | 
 | 8 | +        required: false  | 
9 | 9 |         type: string  | 
10 | 10 |       gradleTasks:  | 
11 |  | -        description: 'Additional Gradle tasks. The `build` and `artifactoryPublish` are included.'  | 
 | 11 | +        description: 'Additional Gradle tasks. The `build` and `publishAllPublicationsToDeploymentRepository` are included.'  | 
12 | 12 |         required: false  | 
13 | 13 |         type: string  | 
14 | 14 |       artifactoryUrl:  | 
15 | 15 |         description: 'The Artifactory Server'  | 
16 | 16 |         required: false  | 
17 | 17 |         type: string  | 
18 |  | -      stagingRepository:  | 
19 |  | -        description: 'The Artifactory Repository to stage artifacts to'  | 
 | 18 | +      targetRepository:  | 
 | 19 | +        description: 'The Artifactory Repository to upload artifacts to'  | 
20 | 20 |         required: false  | 
21 | 21 |         type: string  | 
22 |  | -        default: libs-staging-local  | 
23 | 22 |       artifactoryProjectKey:  | 
24 | 23 |         description: 'The Artifactory project key'  | 
25 | 24 |         required: false  | 
 | 
33 | 32 |     outputs:  | 
34 | 33 |       buildName:  | 
35 | 34 |         description: 'Artifactory Build Name'  | 
36 |  | -        value: ${{ jobs.staging-to-artifactory-with-gradle.outputs.buildName }}  | 
 | 35 | +        value: ${{ jobs.build-with-gradle.outputs.buildName }}  | 
37 | 36 |       buildNumber:  | 
38 | 37 |         description: 'Artifactory Build Number'  | 
39 |  | -        value: ${{ jobs.staging-to-artifactory-with-gradle.outputs.buildNumber }}  | 
 | 38 | +        value: ${{ jobs.build-with-gradle.outputs.buildNumber }}  | 
40 | 39 | 
 
  | 
41 | 40 |     secrets:  | 
42 |  | -      GH_ACTIONS_REPO_TOKEN:  | 
43 |  | -        required: true  | 
 | 41 | +      DEVELOCITY_ACCESS_KEY:  | 
 | 42 | +        required: false  | 
44 | 43 |       ARTIFACTORY_USERNAME:  | 
45 | 44 |         required: true  | 
46 | 45 |       ARTIFACTORY_PASSWORD:  | 
47 | 46 |         required: true  | 
48 |  | -      DEVELOCITY_ACCESS_KEY:  | 
49 |  | -        required: false  | 
50 | 47 |       GPG_PASSPHRASE:  | 
51 | 48 |         required: false  | 
52 | 49 |       GPG_PRIVATE_KEY:  | 
 | 
57 | 54 |   WORKFLOWS_REF: main  | 
58 | 55 | 
 
  | 
59 | 56 | jobs:  | 
60 |  | -  staging-to-artifactory-with-gradle:  | 
 | 57 | +  build-with-gradle:  | 
61 | 58 |     runs-on: ${{ inputs.runner }}  | 
 | 59 | +    name: CI Build for ${{ github.ref_name }}  | 
 | 60 | + | 
62 | 61 |     outputs:  | 
63 | 62 |       buildName: ${{ steps.build-and-publish.outputs.buildName }}  | 
64 | 63 |       buildNumber: ${{ steps.build-and-publish.outputs.buildNumber }}  | 
 | 
85 | 84 |           releaseVersion: ${{ inputs.releaseVersion }}  | 
86 | 85 |           gradleTasks: ${{ inputs.gradleTasks }}  | 
87 | 86 |           artifactoryUrl: ${{ inputs.artifactoryUrl }}  | 
88 |  | -          targetRepository: ${{ inputs.stagingRepository }}  | 
 | 87 | +          targetRepository: ${{ inputs.targetRepository }}  | 
89 | 88 |           artifactoryProjectKey: ${{ inputs.artifactoryProjectKey }}  | 
90 | 89 |           artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}  | 
91 | 90 |           artifactoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }}  | 
92 | 91 |           gpgPrivateKey: ${{ secrets.GPG_PRIVATE_KEY }}  | 
93 | 92 |           gpgPassphrase: ${{ secrets.GPG_PASSPHRASE }}  | 
 | 93 | + | 
 | 94 | + | 
0 commit comments