Bump version: 0.3.1 → 0.3.2 #6
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| branches: | |
| - main | |
| jobs: | |
| # First run the existing CI workflow | |
| ci: | |
| name: Run CI | |
| uses: ./.github/workflows/ci.yml | |
| # Release to PyPI after CI passes | |
| release: | |
| name: Release to PyPI | |
| runs-on: ubuntu-latest | |
| needs: ci | |
| permissions: | |
| id-token: write # Required for trusted publishing to PyPI | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Build package | |
| run: uv build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| verbose: true |