v0.1.3 #4
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: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| attestations: write | |
| jobs: | |
| build: | |
| name: Build distributions | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| attestations: write | |
| id-token: write | |
| outputs: | |
| artifact-name: python-package-distributions | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install build tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade build twine pkginfo | |
| - name: Build distributions | |
| run: python -m build | |
| - name: Check distributions | |
| run: python -m twine check dist/* | |
| - name: Verify wheel install | |
| run: | | |
| python -m pip install dist/*.whl | |
| commit-check-mcp --help | |
| - name: Upload distributions | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-package-distributions | |
| path: dist/* | |
| - name: Create attestations | |
| uses: actions/attest-build-provenance@v3 | |
| with: | |
| subject-path: dist/* | |
| publish: | |
| name: Publish to PyPI | |
| needs: build | |
| runs-on: ubuntu-24.04 | |
| environment: pypi | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Download distributions | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: python-package-distributions | |
| path: dist | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |