Skip to content

Merge pull request #136 from indexnetwork/sdk-fix #20

Merge pull request #136 from indexnetwork/sdk-fix

Merge pull request #136 from indexnetwork/sdk-fix #20

Workflow file for this run

name: Python SDK
on:
push:
branches:
- dev
paths:
- "sdk/python/**"
workflow_dispatch:
jobs:
publish-to-pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build the package
run: python -m build sdk/python
- name: Publish package to PyPI
working-directory: sdk/python
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*