diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 210a2c7..741a3a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/upload-multiple-releases@1.0.7 + - 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: @@ -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/upload-multiple-releases@1.0.7 + - 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