Skip to content

Merge pull request #165 from jburel/build #268

Merge pull request #165 from jburel/build

Merge pull request #165 from jburel/build #268

Workflow file for this run

---
name: Publish Python distributions to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- 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/[email protected]
with:
password: ${{ secrets.PYPI_PASSWORD }}