File tree 1 file changed +12
-8
lines changed
.github/actions/publish-gradle-plugin
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
13
13
gradle-plugin-publish-secret :
14
14
description : ' Gradle publishing secret'
15
15
required : true
16
+ build-number :
17
+ description : ' The build number to use when downloading plugin artifacts'
18
+ required : false
19
+ default : ${{ github.run_number }}
16
20
runs :
17
21
using : composite
18
22
steps :
@@ -22,13 +26,13 @@ runs:
22
26
JF_ENV_SPRING : ${{ inputs.jfrog-cli-config-token }}
23
27
- name : Download Artifacts
24
28
shell : bash
25
- run : jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-boot-{0}', inputs.plugin-version) }};buildNumber=${{ github.run_number }}'
29
+ run : jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-boot-{0}', inputs.plugin-version) }};buildNumber=${{ inputs.build-number }}'
30
+ - name : Set Up Java
31
+ uses : actions/setup-java@v4
32
+ with :
33
+ distribution : ' liberica'
34
+ java-version : ' 17'
26
35
- name : Publish
27
36
shell : bash
28
- run : >
29
- ./gradlew publishExisting
30
- -p ${{ github.action_path }}
31
- -Pgradle.publish.key=${{ inputs.gradle-plugin-publish-key }}
32
- -Pgradle.publish.secret=${{ inputs.gradle-plugin-publish-secret }}
33
- -PbootVersion=${{ inputs.plugin-version }}
34
- -PrepositoryRoot=$(pwd)/repository
37
+ working-directory : ${{ github.action_path }}
38
+ run : ${{ github.workspace }}/gradlew publishExisting -Pgradle.publish.key=${{ inputs.gradle-plugin-publish-key }} -Pgradle.publish.secret=${{ inputs.gradle-plugin-publish-secret }} -PbootVersion=${{ inputs.plugin-version }} -PrepositoryRoot=${{ github.workspace }}/repository
You can’t perform that action at this time.
0 commit comments