Merge pull request #2030 from AndreMiras/feature/increase-coverage #329
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: PyPI release | |
| on: [push] | |
| jobs: | |
| pypi_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade setuptools wheel twine build | |
| - name: Build | |
| run: | | |
| python -m build | |
| twine check dist/* | |
| - name: Publish package | |
| if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@v1.14.0 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.pypi_password }} |