Skip to content

Add automated PyPI deployment with trusted publishing - #6

Merged
chrisburr merged 6 commits into
masterfrom
copilot/add-automated-deployment-to-pypi
Feb 19, 2026
Merged

Add automated PyPI deployment with trusted publishing#6
chrisburr merged 6 commits into
masterfrom
copilot/add-automated-deployment-to-pypi

Conversation

Copilot AI commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Implements automated package building and PyPI deployment as requested in the issue. Builds are triggered on all PRs and commits to main; deployment occurs only on tag pushes.

Changes

  • .github/workflows/publish.yml: GitHub Actions workflow

    • Builds package with python -m build on all events
    • Publishes to PyPI on tag push using OIDC trusted publishing
    • Artifacts stored for verification
    • Minimal permissions (contents: read for build, id-token: write for publish)
  • .github/PYPI_SETUP.md: Setup instructions

    • PyPI trusted publisher configuration steps
    • Release process documentation

Usage

After configuring trusted publishing on PyPI (see .github/PYPI_SETUP.md):

git tag v0.3.0
git push origin v0.3.0

No API tokens required - authentication via GitHub OIDC.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add automated deployment to PyPI with trusted publishing</issue_title>
<issue_description>Once #4 is merged I'll assign this to copilot and I'm pretty sure it'll be able to take care of it easily with the usual python -m build for all PRs/commits to main with detection of if it's a tag in which case it should deploy the sdist/bdist to PyPI.</issue_description>

Comments on the Issue (you are @copilot in this section)

@AndyLHCb @chrisburr #4 is merged

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits February 19, 2026 09:18
Co-authored-by: chrisburr <5220533+chrisburr@users.noreply.github.com>
Co-authored-by: chrisburr <5220533+chrisburr@users.noreply.github.com>
Co-authored-by: chrisburr <5220533+chrisburr@users.noreply.github.com>
Co-authored-by: chrisburr <5220533+chrisburr@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automated deployment to PyPI with trusted publishing Add automated PyPI deployment with trusted publishing Feb 19, 2026
Copilot AI requested a review from chrisburr February 19, 2026 09:21
@chrisburr
chrisburr marked this pull request as ready for review February 19, 2026 09:45
@chrisburr
chrisburr merged commit 97d3176 into master Feb 19, 2026
2 checks passed
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.

Add automated deployment to PyPI with trusted publishing

2 participants