0.1.1 - Chill #5
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 to PyPI | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| ci: | |
| name: Run CI | |
| uses: ./.github/workflows/ci.yml | |
| publish: | |
| name: Build and publish to PyPI | |
| runs-on: ubuntu-latest | |
| needs: ci | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # Need full history for proper versioning with hatch-vcs | |
| fetch-depth: 0 | |
| - name: Install uv and set Python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| cache-dependency-glob: "pyproject.toml" | |
| - name: Install build dependencies | |
| run: uv pip install build hatchling hatch-vcs | |
| - name: Build package | |
| run: uv build | |
| - name: Publish to PyPI | |
| run: uv publish |