-
-
Notifications
You must be signed in to change notification settings - Fork 1
ci: add publish step to the release workflow #8
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
Conversation
|
It would be nice to also check that the tag corresponds to the version in Cargo.toml, but I am not sure how to do it and it's possible to add it later. |
|
Do we want this workflow? I.e.: # <merge PR>
jj git fetch
jj new master
git tag v$VERSION
git push --tagsAs opposed to # <merge PR>
jj git fetch
jj new master
cargo publish
git tag $PUBLISHED_VERSION
git push --tagsSince Further, this permits publishing from GH actions. But that may not be much different from what we already had (GitHub already controls who has permissions to publish to crates.io). |
|
Since we have a |
The idea is that it allows to remove crates.io credentials from your local machine where they can be vulnerable to malicious actors (which is especially bad considering that cargo stores them in plaintext...). You also could configure the environment rules for better protection of releases. As you correctly noticed, GH already fully controls our access to crates.io, so security-wise trusted publishing is not worse than publishing manually. |
|
Damn, we get the following error:
|
|
Looks like we can't run JavaScript expressions during variable expansion. An alternative would be to remove the |
|
Also, are you sure that the Outputs nothing for me. |
|
Try |
Bumps the crate version to v0.10.0-rc-2 for testing purposes.