Enable automated PyPI deployments for tagged releases (#943)

* Limit PyPi deploys to tag relaeses

* Remove unnecessary tests and docs from sdist build
This commit is contained in:
Donncha Ó Cearbhaill
2026-09-22 13:02:49 +02:00
committed by GitHub
parent e0697a58e9
commit 2426178baa
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ jobs:
publish:
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
environment: pypi # only tag refs may deploy; the PyPI trusted publisher requires it
permissions:
id-token: write # PyPI trusted publishing
steps:
+4
View File
@@ -0,0 +1,4 @@
prune tests
prune docs
prune .github
exclude uv.lock Dockerfile* mkdocs.yml .readthedocs.yaml .safety-policy.yml .python-version .gitignore Makefile