File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ jobs:
29
29
run : chmod +x gradlew
30
30
- name : Build with Gradle
31
31
run : ./gradlew build -x test -Pversion=$TP_SDK_VERSION $SDK_BUILD_ARGS
32
-
33
- - name : Rename uberJAR file name
32
+ - name : Define uberJAR file name
34
33
if : startsWith(github.ref, 'refs/tags/v')
35
34
run : |
36
- cp build/libs/*UBER.jar build/libs/testproject-java-sdk.jar
35
+ export TP_SDK_JAR_NAME="testproject-java-sdk.jar"
36
+ echo "TP_SDK_JAR_NAME=testproject-java-sdk.jar" >> $GITHUB_ENV
37
+ cp build/libs/*UBER.jar build/libs/"${TP_SDK_JAR_NAME}"
37
38
- name : Upload uberJAR workflow artifact
38
39
if : startsWith(github.ref, 'refs/tags/v')
39
40
uses : actions/upload-artifact@v2
40
41
with :
41
42
name : uberJAR.jar
42
- path : build/libs/testproject-java-sdk.jar
43
+ path : build/libs/{{ env.TP_SDK_JAR_NAME }}
You can’t perform that action at this time.
0 commit comments