File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,13 @@ jobs:
30
30
31
31
32
32
- name : Build TarGz
33
+ id : build-targz
33
34
run : |
34
35
./gradlew -Pprefix=automq-${{ github.ref_name }}_ --build-cache --refresh-dependencies clean releaseTarGz
35
36
mkdir -p core/build/distributions/latest
36
37
LATEST_TAG=$(git tag --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
38
+ echo "LATEST_TAG=$LATEST_TAG"
39
+ IS_LATEST="false"
37
40
if [ "$LATEST_TAG" == "${{ github.ref_name }}" ]; then
38
41
IS_LATEST=true
39
42
fi
52
55
53
56
- uses : tvrcgo/oss-action@master
54
57
name : upload-latest
55
- if : ${{ github.repository_owner == 'AutoMQ' && env .IS_LATEST == 'true' }}
58
+ if : ${{ github.repository_owner == 'AutoMQ' && steps.build-targz.outputs .IS_LATEST == 'true' }}
56
59
with :
57
60
bucket : ${{ secrets.UPLOAD_BUCKET }}
58
61
key-id : ${{ secrets.UPLOAD_BUCKET_AK }}
You can’t perform that action at this time.
0 commit comments