File tree Expand file tree Collapse file tree 1 file changed +11
-22
lines changed Expand file tree Collapse file tree 1 file changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,14 @@ jobs:
2525 - name : Get Version
2626 run : |
2727 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
3133 env :
3234 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+
4136 build_mac :
4237 runs-on : macos-12
4338 steps :
@@ -58,16 +53,10 @@ jobs:
5853 - name : Get Version
5954 run : |
6055 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
6461 env :
6562 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