feat(python): add action to build and publish wheel (#179)

This commit is contained in:
gsilvestrin
2023-06-12 14:54:54 -07:00
committed by GitHub
parent e4f64fca7b
commit 5ec4a5d730

31
.github/workflows/pypi-publish.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: PyPI Publish
on:
release:
types: [ published ]
tags:
- 'python-v*' # Push events that matches the python-make-release action
jobs:
publish:
runs-on: ubuntu-latest
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