Skip to content

Commit

Permalink
Fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Dec 23, 2023
1 parent d00ae3b commit 1e38a97
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,14 @@ jobs:
- name: Get Version
run: |
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Upload release
if: github.event_name != 'pull_request'
uses: boxpositron/[email protected]
- name: Upload chdb-go and libchdb.so to release
if: startsWith(github.ref, 'refs/tags/v')
run: |
tar -czvf linux-x86_64-chdb-go.tar.gz libchdb.so chdb-go
gh release upload ${{ github.ref_name }} linux-x86_64-chdb-go.tar.gz --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_config: |
chdb-go-linux
tag_name: ${{ env.VERSION }}
release_name: chdbgo_${{ env.VERSION }}
draft: false
prerelease: false
overwrite: true

build_mac:
runs-on: macos-12
steps:
Expand All @@ -58,16 +53,10 @@ jobs:
- name: Get Version
run: |
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Upload release
if: github.event_name != 'pull_request'
uses: boxpositron/[email protected]
- name: Upload chdb-go and libchdb.so to release
if: startsWith(github.ref, 'refs/tags/v')
run: |
tar -czvf macos-x86_64-chdb-go.tar.gz libchdb.so chdb-go
gh release upload ${{ github.ref_name }} macos-x86_64-chdb-go.tar.gz --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_config: |
chdb-go-macos
tag_name: ${{ env.VERSION }}
release_name: chdbgo_${{ env.VERSION }}
draft: false
prerelease: false
overwrite: true

0 comments on commit 1e38a97

Please sign in to comment.