rust-lang / jobserver-rs

Apache License 2.0
69 stars 39 forks source link

CI: Support automatic publish to crates.io on tag creation #89

Closed NobodyXu closed 1 month ago

NobodyXu commented 4 months ago

https://github.com/rust-lang/infra-team/issues/117

This would make it easier to release new crate, without having to ping anyone.

Whoever has the right to create a new release on GitHub shall have the right to publish it to crates.io

NOTE that this new workflow requires a secret CARGO_REGISTRY_TOKEN to be set. With scoped token, you can limit the token to only have the ability to publish new version under name jobserver, and nothing else.

NobodyXu commented 4 months ago

cc @weihanglo

NobodyXu commented 4 months ago

cc @weihanglo Do you think it's something worth's having for jobserver-rs?

cc-rs is already using this so that I don't have to ping someone on zulip to do the release every time 😂

weihanglo commented 4 months ago

Yeah, and we may want to standardize the release process to include changelog.

Yet I think it's up to @petrochenkov who helps the release process a lot :)

weihanglo commented 1 month ago

cc @Kobzol Could you or somebody on infra team help configure the token? Thank you :)

Kobzol commented 1 month ago

I don't have access to it. @jdno Could you please take a look?

jdno commented 1 month ago

CARGO_REGISTRY_TOKEN secrect with publish-update permissions has been added to the repo. 👍

weihanglo commented 1 month ago

Thank you all!