Skip to content

.github/workflows/pypi-publish.yml #2

.github/workflows/pypi-publish.yml

.github/workflows/pypi-publish.yml #2

Workflow file for this run

---
on:
release:
types: [published]
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Build package distributions
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1