Bump to 0.7.3 #7
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 Package to PyPI | |
| permissions: | |
| contents: write | |
| id-token: write | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| jobs: | |
| build-and-publish: | |
| name: Build and publish Python distribution to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install the project | |
| run: uv sync --no-dev | |
| - name: Build package | |
| run: uv build | |
| - name: Verify package contents | |
| run: | | |
| echo "=== Contents of dist/ ===" | |
| ls -lh dist/ | |
| echo "" | |
| echo "=== Wheel contents ===" | |
| unzip -l dist/*.whl || true | |
| echo "" | |
| echo "=== Tarball contents ===" | |
| tar -tzf dist/*.tar.gz || true | |
| - name: Publish package to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| verbose: true |