34
34
- name : Build with Gradle
35
35
run : ./gradlew build -x test -Pversion=$TP_SDK_VERSION $SDK_BUILD_ARGS
36
36
- name : Define FULL jar name
37
+ if : startsWith(github.ref, 'refs/tags/v')
37
38
run : |
38
39
if [ -z "$SDK_BUILD_ARGS" ]
39
40
then
@@ -49,18 +50,24 @@ jobs:
49
50
echo "TP_SDK_FULL_JAR_EXT=FULL.jar" >> $GITHUB_ENV
50
51
echo "TP_SDK_JAR_EXT=.jar" >> $GITHUB_ENV
51
52
- name : Upload FULL jar to release
53
+ if : startsWith(github.ref, 'refs/tags/v')
52
54
uses : svenstaro/upload-release-action@v2
53
55
with :
54
56
repo_token : ${{ secrets.GITHUB_TOKEN }}
55
57
file : build/libs/${{ env.TP_SDK_JAR_NAME }}-${{ env.TP_SDK_VERSION }}-${{ env.TP_SDK_VARIANT}}-${{ env.TP_SDK_FULL_JAR_EXT }}
56
58
asset_name : ${{ env.TP_SDK_JAR_NAME }}${{ env.TP_SDK_JAR_EXT }}
57
59
tag : ${{ github.ref }}
58
60
overwrite : true
59
- - name : Create jar's hash file
61
+ - name : Create jar's hash file
62
+ if : startsWith(github.ref, 'refs/tags/v')
60
63
run : |
61
64
md5sum build/libs/${{ env.TP_SDK_JAR_NAME }}-${{ env.TP_SDK_VERSION }}-${{ env.TP_SDK_VARIANT}}-${{ env.TP_SDK_FULL_JAR_EXT }} > build/libs/jar-hash.md
62
65
- name : Upload hash artifact
63
- uses : actions/upload-artifact@v2
66
+ if : startsWith(github.ref, 'refs/tags/v')
67
+ uses : svenstaro/upload-release-action@v2
64
68
with :
65
- name : Asset Hashes
66
- path : build/libs/jar-hash.md
69
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
70
+ file : build/libs/jar-hash.md
71
+ asset_name : ${{ env.TP_SDK_JAR_NAME }}.md5
72
+ tag : ${{ github.ref }}
73
+ overwrite : true
0 commit comments