Skip to content

Commit f936a7e

Browse files
authored
Update build.yml
1 parent 9d29aa2 commit f936a7e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ jobs:
2929
run: chmod +x gradlew
3030
- name: Build with Gradle
3131
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
3433
if: startsWith(github.ref, 'refs/tags/v')
3534
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}"
3738
- name: Upload uberJAR workflow artifact
3839
if: startsWith(github.ref, 'refs/tags/v')
3940
uses: actions/upload-artifact@v2
4041
with:
4142
name: uberJAR.jar
42-
path: build/libs/testproject-java-sdk.jar
43+
path: build/libs/{{ env.TP_SDK_JAR_NAME }}

0 commit comments

Comments
 (0)