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: Build package distributions
run: |
python -mpip install wheel
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/