File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 16
16
contents : write
17
17
env :
18
18
VERSION : " "
19
+ GH_TOKEN : ${{ github.token }}
19
20
steps :
20
21
- uses : actions/checkout@v4
21
22
with :
33
34
cur_ver=$(git describe --abbrev=0 --tags)
34
35
if [ "$new_ver" != "$cur_ver" ]; then
35
36
version=$new_ver
37
+ else
38
+ id=$(git rev-parse --short HEAD)
39
+ sed -E "s|v[0-9]+\.[0-9]+\.[0-9]+|$id|" cmd/compiledb/main.go -i
36
40
fi
37
41
echo "VERSION=$version" >> $GITHUB_ENV
38
42
@@ -65,11 +69,12 @@ jobs:
65
69
tar cJvf compiledb.txz compiledb
66
70
mv compiledb.txz $out/compiledb-darwin-arm64.txz
67
71
72
+ gh release delete Latest --cleanup-tag -y || true
68
73
ls -la $out
69
74
70
75
- uses : actions/upload-artifact@v4
71
76
with :
72
- name : bin
77
+ name : binary
73
78
path : build/*
74
79
75
80
- name : Release
81
86
artifactErrorsFailBuild : true
82
87
generateReleaseNotes : true
83
88
artifacts : " build/*"
89
+
90
+ - name : Update latest
91
+ uses : ncipollo/release-action@v1
92
+ with :
93
+ tag : Latest
94
+ artifactErrorsFailBuild : true
95
+ generateReleaseNotes : true
96
+ prerelease : true
97
+ draft : false
98
+ artifacts : " build/*"
You can’t perform that action at this time.
0 commit comments