mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
gha: use new sqlite-dist workflow
This commit is contained in:
parent
6e93ae0383
commit
5f0e6e506f
1 changed files with 20 additions and 22 deletions
42
.github/workflows/release.yaml
vendored
42
.github/workflows/release.yaml
vendored
|
|
@ -252,20 +252,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: sqlite-vec-iossimulator-x86_64-extension
|
name: sqlite-vec-iossimulator-x86_64-extension
|
||||||
path: dist/iossimulator-x86_64
|
path: dist/iossimulator-x86_64
|
||||||
- run: |
|
|
||||||
curl -L https://github.com/asg017/sqlite-dist/releases/download/v0.0.1-alpha.17/sqlite-dist-x86_64-unknown-linux-gnu.tar.xz \
|
|
||||||
| tar xfJ - --strip-components 1
|
|
||||||
- run: make sqlite-vec.h
|
- run: make sqlite-vec.h
|
||||||
- run: ./sqlite-dist ./sqlite-dist.toml --input dist/ --output distx/ --version $(cat VERSION)
|
- uses: asg017/setup-sqlite-dist@73e37b2ffb0b51e64a64eb035da38c958b9ff6c6
|
||||||
|
- run: sqlite-dist build --set-version $(cat VERSION)
|
||||||
- run: |
|
- run: |
|
||||||
gh release upload ${{ github.ref_name }} \
|
gh release upload ${{ github.ref_name }} \
|
||||||
distx/amalgamation/* \
|
.sqlite-dist/amalgamation/* \
|
||||||
distx/github_releases/* \
|
.sqlite-dist/github_releases/* \
|
||||||
distx/spm/* \
|
.sqlite-dist/spm/* \
|
||||||
distx/sqlpkg/* \
|
.sqlite-dist/sqlpkg/* \
|
||||||
distx/checksums.txt \
|
.sqlite-dist/checksums.txt \
|
||||||
distx/sqlite-dist-manifest.json \
|
.sqlite-dist/sqlite-dist-manifest.json \
|
||||||
distx/install.sh
|
.sqlite-dist/install.sh
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
- name: Install node
|
- name: Install node
|
||||||
|
|
@ -282,20 +280,20 @@ jobs:
|
||||||
else
|
else
|
||||||
TAG=latest
|
TAG=latest
|
||||||
fi
|
fi
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec-darwin-arm64.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec-darwin-arm64.tar.gz
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec-darwin-x64.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec-darwin-x64.tar.gz
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec-linux-x64.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec-linux-x64.tar.gz
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec-linux-arm64.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec-linux-arm64.tar.gz
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec-windows-x64.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec-windows-x64.tar.gz
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec-wasm-demo.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec-wasm-demo.tar.gz
|
||||||
npm publish --provenance --access public --tag $TAG distx/npm/sqlite-vec.tar.gz
|
npm publish --provenance --access public --tag $TAG .sqlite-dist/npm/sqlite-vec.tar.gz
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ""
|
NODE_AUTH_TOKEN: ""
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 3.2
|
ruby-version: 3.2
|
||||||
- run: |
|
- run: |
|
||||||
for file in distx/gem/*; do
|
for file in .sqlite-dist/gem/*; do
|
||||||
gem push "$file"
|
gem push "$file"
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
|
|
@ -305,9 +303,9 @@ jobs:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
- run: pip install twine
|
- run: pip install twine
|
||||||
- run: |
|
- run: |
|
||||||
twine upload distx/pip/*
|
twine upload .sqlite-dist/pip/*
|
||||||
twine upload distx/datasette/*
|
twine upload .sqlite-dist/datasette/*
|
||||||
twine upload distx/sqlite_utils/*
|
twine upload .sqlite-dist/sqlite_utils/*
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue