Skip to content

Publish python-client #42

Publish python-client

Publish python-client #42

Workflow file for this run

name: Publish python-client
on: workflow_dispatch # Manual trigger
jobs:
build_and_deploy:
name: Create and publish package to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
working-directory: ./metaspace/python-client
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYTHON_CLIENT_PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*