V0.1.0: Initial release #1
Workflow file for this run
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 Package | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Build release distributions | |
| run: uv build | |
| - name: Publish to TestPyPI (dev branch) | |
| if: github.event.release.target_commitish == 'dev' | |
| run: uv publish --index testpypi | |
| - name: Publish to PyPI (main branch) | |
| if: github.event.release.target_commitish == 'main' | |
| run: uv publish --index pypi |