[pre-commit.ci] auto fixes from pre-commit.com hooks #196
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 Python distributions to PyPI and TestPyPI | |
| on: push | |
| jobs: | |
| build-n-publish: | |
| name: Publish to PyPI | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Build a binary wheel and a source tarball | |
| run: | | |
| python -mpip install build | |
| python -m build | |
| - name: Publish distribution to PyPI | |
| if: startsWith(github.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_PASSWORD }} |