Skip to content

Use ubuntu-22:04, checkout@v4 and setup-python@v4 in publish_pypi.yml #257

Use ubuntu-22:04, checkout@v4 and setup-python@v4 in publish_pypi.yml

Use ubuntu-22:04, checkout@v4 and setup-python@v4 in publish_pypi.yml #257

Workflow file for this run

---
name: PyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Build a binary wheel and a source tarball
run: |
python -mpip install wheel
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_PASSWORD }}