Update pyproject.toml #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
| # .github/workflows/release-pypi.yml | |
| name: Publish to PyPI on tag | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: read | |
| id-token: write # REQUIRED for PyPI Trusted Publishing (OIDC) | |
| jobs: | |
| build-publish-pypi: | |
| runs-on: ubuntu-latest | |
| # environment: pypi # uncomment if you set an Environment and referenced it on PyPI | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - run: python -m pip install --upgrade build | |
| - run: python -m build | |
| - name: Publish to PyPI (Trusted Publishing) | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| # no 'password:' when using Trusted Publishing |