Skip to content

ci: publish workflow (PyPI trusted publisher, tag-triggered, no stored token) - #175

Merged
unfoundbox merged 2 commits into
mainfrom
feat/publish-workflow
Sep 24, 2026
Merged

unfoundbox merged 2 commits into
mainfrom
feat/publish-workflow

Conversation

@unfoundbox

@unfoundbox unfoundbox commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

One-time setup that makes every future release one click.

  • Tag v* push or manual workflow_dispatch triggers:
    1. build — ubuntu-latest (not blacksmith), clears stale build/ first (the PR-167 trap), builds sdist+wheel, sanity-checks for ghost modules in the wheel before uploading
    2. publish — pypa/gh-action-pypi-publish@release/v1, permissions.id-token: write, no stored token (PyPI trusted publisher OIDC flow)
    3. release — creates the GitHub release for the tag from RELEASE_NOTES_<tag>.md with the wheel attached

PyPI one-time setup (not in this repo): add the publisher at pypi.org/manage/project/spacepilot/settings/publishing — owner motionvector-dev, repo spacepilot, workflow publish.yml, environment pypi. The first real release needs this configured or the publisher verification will fail.

actionlint passes on the workflow.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…ed token

Makes every future release one click. That shape was the failure today: no
publish workflow existed and v2.9.0 shipped by hand. The workflow guards the
stale build/lib trap explicitly, sanity-checks the wheel for ghost modules
before uploading, and uses pypa/gh-action-pypi-publish@release/v1 with
permissions.id-token: write so the OIDC flow is the only auth.

PyPI side needs a one-time manual add of motionvector-dev/spacepilot as a
trusted publisher (documented in the workflow comment). That is not in this
repo by design.
@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
spacepilot Error Error Sep 24, 2026 3:29pm UTC
spacepilot.dev Ready Ready Preview Sep 24, 2026 3:29pm UTC

@unfoundbox
unfoundbox merged commit 5123d3a into main Sep 24, 2026
5 of 7 checks passed

This branch had an error being deployed

1 failed and 1 active deployments
Preview – spacepilot — 0a96fd35 Deployed Sep 24, 2026 by vercel[bot]
Preview – spacepilot.dev — 0a96fd35 Deployed Sep 24, 2026 by vercel[bot]
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.

1 participant