diff --git a/.github/workflows/build_arm_wheels.yml b/.github/workflows/build_arm_wheels.yml index 5c14b0aaa5f..fcb7d294580 100644 --- a/.github/workflows/build_arm_wheels.yml +++ b/.github/workflows/build_arm_wheels.yml @@ -115,6 +115,19 @@ jobs: ls -lh dist shell: bash continue-on-error: false + - name: Upload wheels to release + if: startsWith(github.ref, 'refs/tags/v') + run: | + gh release upload ${{ github.ref_name }} dist/*.whl --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload libchdb.so to release + if: startsWith(github.ref, 'refs/tags/v') && matrix.python-version == '3.12' + run: | + tar -czvf linux-aarch64-libchdb.tar.gz libchdb.so + gh release upload ${{ github.ref_name }} linux-aarch64-libchdb.tar.gz --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3 with: path: ./dist/*.whl diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index f733d9fdc42..ae272979474 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -142,8 +142,8 @@ jobs: - name: Upload libchdb.so to release if: startsWith(github.ref, 'refs/tags/v') && matrix.python-version == '3.12' run: | - tar -czvf linux-libchdb.tar.gz libchdb.so - gh release upload ${{ github.ref_name }} linux-libchdb.tar.gz --clobber + tar -czvf linux-x86_64-libchdb.tar.gz libchdb.so + gh release upload ${{ github.ref_name }} linux-x86_64-libchdb.tar.gz --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3 @@ -280,8 +280,8 @@ jobs: - name: Upload libchdb.so to release if: startsWith(github.ref, 'refs/tags/v') && matrix.python-version == '3.12' run: | - tar -czvf macos-libchdb.tar.gz libchdb.so - gh release upload ${{ github.ref_name }} macos-libchdb.tar.gz --clobber + tar -czvf macos-x86_64-libchdb.tar.gz libchdb.so + gh release upload ${{ github.ref_name }} macos-x86_64-libchdb.tar.gz --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3