Repository navigation
Commit e7961e1
ci: add PyPI trusted-publish workflow, manual docs dispatch
Adds .github/workflows/publish.yml: on a published GitHub Release,
build sdist+wheel from the release tag, check metadata with twine,
and publish to PyPI via pypa/gh-action-pypi-publish using OIDC trusted
publishing (permissions: id-token: write) -- no stored token/secret.
Scoped to a "pypi" GitHub Environment so PyPI's trusted-publisher
check is exact (repo + workflow + environment) and so manual-approval
gating can be added later if wanted.
Requires a one-time manual step on PyPI: add a trusted publisher on
the existing pgraph-python project (Settings -> Publishing) naming
this repo, workflow filename, and the "pypi" environment.
Also adds workflow_dispatch to ci.yml's triggers, and widens the docs
job's condition to run on manual dispatch as well as push, so the
Sphinx docs can be manually rebuilt/redeployed on demand without any
relationship to a PyPI release -- the two are on separate triggers
entirely (push+dispatch for docs, release-published only for PyPI).
Verified: pyproject.toml/publish.yml YAML parses; `python -m build`
produces a clean sdist+wheel from this checkout; `twine check` passes
on both; a genuinely isolated venv (confirmed via sys.prefix) installs
the built wheel and successfully imports and exercises real
functionality (UGraph/add_vertex/add_edge/__str__).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent cdbc54a commit e7961e1
2 files changed
Lines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments