Skip to content

Commit 1e38a97

Browse files
committed
Fix upload
1 parent d00ae3b commit 1e38a97

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

.github/workflows/release.yml

+11-22
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)