Skip to content

ci: add cd.yml for trusted publishing - #58

Merged
henryiii merged 3 commits into
masterfrom
add-cd-workflow
Aug 6, 2026
Merged

ci: add cd.yml for trusted publishing#58
henryiii merged 3 commits into
masterfrom
add-cd-workflow

Conversation

@henryiii

@henryiii henryiii commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

I Claupied this from some of my other repos (pybind11, scikit-build-core, and repo-review).

🤖 AI text below 🤖

Adds a CD workflow that publishes to PyPI on a published release, with workflow_dispatch for a dry run of the build.

  • dist builds and inspects the sdist and wheel with hynek/build-and-inspect-python-package.
  • publish runs only for published releases in the pypi environment, and uses trusted publishing with build provenance attestations.

Before the first release, PyPI needs a trusted publisher for pybind11_mkdoc (workflow cd.yml, environment pypi), and the repository needs a pypi environment.

Assisted-by: ClaudeCode:claude-opus-5
Comment thread .github/workflows/cd.yml Outdated
Comment thread .github/workflows/cd.yml
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
Comment thread .github/workflows/cd.yml Outdated
Assisted-by: ClaudeCode:claude-opus-5
@henryiii
henryiii merged commit 66befa6 into master Aug 6, 2026
8 checks passed
@henryiii
henryiii deleted the add-cd-workflow branch August 6, 2026 02:06
@leakec leakec mentioned this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants