Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

NobodyXu
Copy link
Contributor

@NobodyXu NobodyXu commented Apr 22, 2024

rust-lang/infra-team#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.

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

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
@NobodyXu
Copy link
Contributor Author

cc @weihanglo

@NobodyXu
Copy link
Contributor Author

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
Copy link
Member

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
Copy link
Member

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

@Kobzol
Copy link

Kobzol commented Jul 16, 2024

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

@jdno
Copy link
Member

jdno commented Jul 22, 2024

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

@weihanglo weihanglo merged commit 1f5c687 into rust-lang:main Jul 22, 2024
15 checks passed
@weihanglo
Copy link
Member

Thank you all!

@NobodyXu NobodyXu deleted the ci/publish branch July 22, 2024 22:14
@weihanglo weihanglo mentioned this pull request Jul 23, 2024
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.

4 participants