Skip to content

[CI] Integrated with cargo trusted publishing, release-plz #1035

@jlizen

Description

@jlizen

Crates.io now supports trusted publishing: https://crates.io/docs/trusted-publishing

We should use it as it no longer involves generating api tokens that are individually owned. Better to deploy via CI using repo trust relationship. It also gives our users confidence that what is in crates.io is what is in github.

We probably should use release-plz rather than the naked cargo publish mentioned in the crates.io doc.

Release-plz:
https://github.com/release-plz/release-plz

Sample usage:
https://github.com/async-profiler/rust-agent/blob/main/.github/workflows/release.yml

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions