File tree 1 file changed +11
-22
lines changed
1 file changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,14 @@ jobs:
25
25
- name : Get Version
26
26
run : |
27
27
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
28
- - name : Upload release
29
- if : github.event_name != 'pull_request'
30
- uses :
boxpositron/[email protected]
28
+ - name : Upload chdb-go and libchdb.so to release
29
+ if : startsWith(github.ref, 'refs/tags/v')
30
+ run : |
31
+ tar -czvf linux-x86_64-chdb-go.tar.gz libchdb.so chdb-go
32
+ gh release upload ${{ github.ref_name }} linux-x86_64-chdb-go.tar.gz --clobber
31
33
env :
32
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
- with :
34
- release_config : |
35
- chdb-go-linux
36
- tag_name : ${{ env.VERSION }}
37
- release_name : chdbgo_${{ env.VERSION }}
38
- draft : false
39
- prerelease : false
40
- overwrite : true
35
+
41
36
build_mac :
42
37
runs-on : macos-12
43
38
steps :
@@ -58,16 +53,10 @@ jobs:
58
53
- name : Get Version
59
54
run : |
60
55
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
61
- - name : Upload release
62
- if : github.event_name != 'pull_request'
63
- uses :
boxpositron/[email protected]
56
+ - name : Upload chdb-go and libchdb.so to release
57
+ if : startsWith(github.ref, 'refs/tags/v')
58
+ run : |
59
+ tar -czvf macos-x86_64-chdb-go.tar.gz libchdb.so chdb-go
60
+ gh release upload ${{ github.ref_name }} macos-x86_64-chdb-go.tar.gz --clobber
64
61
env :
65
62
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
- with :
67
- release_config : |
68
- chdb-go-macos
69
- tag_name : ${{ env.VERSION }}
70
- release_name : chdbgo_${{ env.VERSION }}
71
- draft : false
72
- prerelease : false
73
- overwrite : true
You can’t perform that action at this time.
0 commit comments