-
Notifications
You must be signed in to change notification settings - Fork 15
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
Automate updating/publishing #18
Comments
https://github.com/matklad/always-assert/blob/master/xtask/src/main.rs does auto-publish on CI, and could be used as a starting point. |
FWIW, here is the release action I use for Good to know: If you add a GitHub org as crates.io crate owner, its members are allowed to publish crates but not remove other crates.io owners. That is a good safety mechanism in in case the crates.io token leaks. A regular crates.io token allows to remove the original crate owner if it leaks. More info on GitHub org owners: https://doc.rust-lang.org/cargo/reference/publishing.html |
Further evidence this is worth doing: rust-lang/rust#109410 merged 4 days ago, but 933c7f0 was only released today. Historically this hasn't happened because I've been on top of things, but if rust has taught us anything, "just always be on top of things" is never a viable strategy in the long run. |
And in regards to token security, the new crates.io scoped token system makes this much less of a problem |
Part 1: Automatically generate changes with GHA
src/rustdoc-json-types
FORMAT_VERSION
should be a decent proxy, but may not be true if JSON format doesn't change but rust does)./update.sh
Part 2: Automaticly publish to Crates.io
Overall, I don't think I wan't to automaticly publish on upstream changes, but it would be nice for it to be more automated
The text was updated successfully, but these errors were encountered: