Skip to content

Add tag-triggered crates.io publish workflow#80

Merged
gvonness-apolitical merged 1 commit into
mainfrom
ci/publish-workflow
Feb 16, 2026
Merged

Add tag-triggered crates.io publish workflow#80
gvonness-apolitical merged 1 commit into
mainfrom
ci/publish-workflow

Conversation

@gvonness-apolitical
Copy link
Copy Markdown
Collaborator

Summary

  • Add .github/workflows/publish.yml — tag-triggered (v*) workflow with trusted publishing (OIDC, no API tokens)
    • ci job: fmt, build, test, clippy, docs, cargo-audit, cargo-deny
    • publish job: version tag validation, dry runs, sequential crate publishing (cdx-core → cdx-cli) via rust-lang/crates-io-auth-action@v1, runs in release environment
    • release job: extracts changelog section, creates GitHub Release via softprops/action-gh-release@v2
  • Add version = "0.1.0" to workspace cdx-core dependency for crates.io resolution
  • Restore codecov, crates.io, and docs.rs badges to README
  • Update org URLs from gvonness-apolitical to Entrolution across CHANGELOG, CONTRIBUTING, Cargo.toml, README

Prerequisites (manual, before first tag-triggered release)

  • Claim crate names on crates.io (initial manual publish)
  • Configure trusted publishers on crates.io for both crates
  • Create release GitHub Actions environment

Test plan

  • Merge PR, bump versions to 0.1.1, tag v0.1.1, push — verify workflow runs end-to-end
  • Verify CI job passes (build, test, clippy, audit)
  • Verify publish job authenticates via OIDC and publishes both crates
  • Verify release job creates GitHub Release with changelog excerpt

Add trusted publishing (OIDC) workflow triggered by v* tags with CI
validation, sequential crate publishing, and automatic GitHub Release
creation from CHANGELOG.md. Add version to workspace cdx-core dep for
crates.io resolution. Restore codecov/crates.io/docs.rs badges. Update
org URLs from gvonness-apolitical to Entrolution.
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 16, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@gvonness-apolitical gvonness-apolitical merged commit 8a97dbe into main Feb 16, 2026
11 checks passed
@gvonness-apolitical gvonness-apolitical deleted the ci/publish-workflow branch February 16, 2026 11:54
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