Update Python SDK version and description in pyproject.toml #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Python SDK | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "packages/sdk-python/**" | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: Production | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Build package | |
| run: cd packages/sdk-python && uv build | |
| - name: Publish to PyPI | |
| run: cd packages/sdk-python && uv publish | |
| env: | |
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |