Skip to content

Add crates.io publish workflow#1

Merged
jwrosewell merged 1 commit into
mainfrom
ci/publish-crates-io
Jun 18, 2026
Merged

Add crates.io publish workflow#1
jwrosewell merged 1 commit into
mainfrom
ci/publish-crates-io

Conversation

@jwrosewell

Copy link
Copy Markdown
Contributor

@
Publishes the owid crate to crates.io when main changes.

  • Triggers on push to main.
  • Verifies the crate (cargo test --all-features).
  • Publishes only when the Cargo.toml version is not already on crates.io, so an ordinary main push (no version bump) is a no-op. Releasing a version is just a version bump merged to main.
  • Uses a CARGO_REGISTRY_TOKEN repository secret (a crates.io API token with publish rights for owid).

The crate already packages and verifies cleanly (cargo package), so it is publish-ready. Action required before the first release: add the CARGO_REGISTRY_TOKEN secret to the repository.
@

@
Add crates.io publish workflow

Publish the owid crate to crates.io on push to main. The job verifies the
crate (cargo test --all-features) then publishes only when the version in
Cargo.toml is not already on crates.io, so an ordinary main push that does not
bump the version is a no-op. Releasing a new version is therefore just a
version bump merged to main.

Requires a CARGO_REGISTRY_TOKEN repository secret holding a crates.io API token
with publish rights for the owid crate.
@
@jwrosewell jwrosewell merged commit 3a2155b into main Jun 18, 2026
2 checks passed
@jwrosewell jwrosewell deleted the ci/publish-crates-io branch June 18, 2026 06:49
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