Skip to content

ci: crates.io publish workflow + packaging hygiene - #3

Merged
VladPr merged 1 commit into
mainfrom
ci/publish-workflow
Jul 8, 2026
Merged

ci: crates.io publish workflow + packaging hygiene#3
VladPr merged 1 commit into
mainfrom
ci/publish-workflow

Conversation

@VladPr

@VladPr VladPr commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Adds a tag-triggered publish workflow (Trusted Publishing / OIDC — no stored token) that verifies the tag matches Cargo.toml before cargo publish.

Also fixes packaging hygiene: cargo package was including the untracked .idea/ IDE files and docs/superpowers/ internal design docs. Both are now gitignored, so the published crate drops from picking those up to a clean 32-file package (verified via cargo publish --dry-run).

One-time setup required before the workflow can publish: add a Trusted Publisher for this repo on crates.io pointing at publish.yml.

Add .github/workflows/publish.yml: on a v* tag, verify the tag matches
Cargo.toml's version, authenticate to crates.io via Trusted Publishing (OIDC,
no stored token), and run cargo publish.

Exclude /docs/superpowers/ (internal design docs) and /.idea/ from the
published package — cargo was sweeping both untracked dirs into the crate.
@VladPr
VladPr merged commit 2f21ef9 into main Jul 8, 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.

1 participant