mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-06 11:52:57 +00:00
32 lines
799 B
YAML
32 lines
799 B
YAML
name: PyPI Publish
|
|
|
|
on:
|
|
release:
|
|
types: [ published ]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
# Only runs on tags that matches the python-make-release action
|
|
if: startsWith(github.ref, 'refs/tags/python-v')
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: python
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.8"
|
|
- name: Build distribution
|
|
run: |
|
|
ls -la
|
|
pip install wheel setuptools --upgrade
|
|
python setup.py sdist bdist_wheel
|
|
- name: Publish
|
|
uses: pypa/gh-action-pypi-publish@v1.8.5
|
|
with:
|
|
password: ${{ secrets.LANCEDB_PYPI_API_TOKEN }}
|
|
packages-dir: python/dist
|