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 n 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

Assignees

No one assigned

    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