Bump tox from 4.18.1 to 4.20.0 #1734
Workflow file for this run
This file contains 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: Packaging | |
on: | |
release: | |
types: [ created ] | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install setuptools wheel twine build | |
- name: Build Python package | |
run: python -m build --sdist --wheel --outdir dist/ . | |
# Will only run on release. | |
- name: Publish distribution to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |