diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 145068c..c56e1be 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -269,29 +269,7 @@ jobs: distx/install.sh env: GH_TOKEN: ${{ github.token }} - - name: Install node - uses: actions/setup-node@v3 - with: - node-version: "16" - registry-url: "https://registry.npmjs.org" - - run: | - npm publish --access public distx/npm/sqlite-vec-darwin-arm64.tar.gz - npm publish --access public distx/npm/sqlite-vec-darwin-x64.tar.gz - npm publish --access public distx/npm/sqlite-vec-linux-x64.tar.gz - npm publish --access public distx/npm/sqlite-vec-windows-x64.tar.gz - npm publish --access public distx/npm/sqlite-vec-wasm-demo.tar.gz - npm publish --access public distx/npm/sqlite-vec.tar.gz - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.2 - - run: | - for file in distx/gem/*; do - gem push "$file" - done - env: - GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }} + - uses: actions/setup-python@v5 with: python-version: "3.12" @@ -303,66 +281,3 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - upload-crate: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - run: ./scripts/vendor.sh - - run: make sqlite-vec.h - - run: make deps - working-directory: ./bindings/rust - - run: cargo publish --no-verify - working-directory: ./bindings/rust - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - - build-ncruces-go: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - run: make sqlite-vec.h - - uses: actions/checkout@v4 - with: - repository: ncruces/go-sqlite3 - path: go-sqlite3 - - run: git apply ../bindings/go/ncruces/go-sqlite3.patch - working-directory: go-sqlite3/ - - run: | - mkdir -p tools/ - [ -d "tools/wasi-sdk" ] || curl -#L "$WASI_SDK" | tar xzC tools & - [ -d "tools/binaryen" ] || curl -#L "$BINARYEN" | tar xzC tools & - wait - - mv "tools/wasi-sdk"* "tools/wasi-sdk" - mv "tools/binaryen"* "tools/binaryen" - - sqlite3/download.sh - embed/build.sh - env: - WASI_SDK: "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-23/wasi-sdk-23.0-x86_64-linux.tar.gz" - BINARYEN: "https://github.com/WebAssembly/binaryen/releases/download/version_118/binaryen-version_118-x86_64-linux.tar.gz" - working-directory: go-sqlite3/ - - uses: actions/checkout@v4 - with: - repository: asg017/sqlite-vec-go-bindings - path: sqlite-vec-go-bindings - token: ${{secrets.NCRUCES_BINDINGS_REPO_PAT}} - - run: | - cp go-sqlite3/embed/sqlite3.wasm sqlite-vec-go-bindings/ncruces/sqlite3.wasm - cp sqlite-vec.c sqlite-vec-go-bindings/cgo/sqlite-vec.c - cp sqlite-vec.h sqlite-vec-go-bindings/cgo/sqlite-vec.h - - run: | - git config user.name "Alex Garcia" - git config user.email "alexsebastian.garcia@gmail.com" - git add . - git commit --allow-empty -m "AUTOMATED ${{ github.ref_name }}" || exit 0 - git tag "${{ github.ref_name }}" - git push origin main "${{ github.ref_name }}" - working-directory: sqlite-vec-go-bindings - env: - GITHUB_TOKEN: ${{secrets.NCRUCES_BINDINGS_REPO_PAT}}