diff --git a/crates/cuddle-rust-cli-plan/src/main.rs b/crates/cuddle-rust-cli-plan/src/main.rs index 724c157..0151edb 100644 --- a/crates/cuddle-rust-cli-plan/src/main.rs +++ b/crates/cuddle-rust-cli-plan/src/main.rs @@ -73,6 +73,16 @@ impl cuddle_ci::ReleaseAction for RustReleaser { rust_image .with_workdir("/mnt/src") .with_directory("/mnt/src", src) + .with_new_file( + "/root/.cargo/credentials", + format!( + r#" +[registry] +token = "{}" +"#, + crates_token + ), + ) .with_secret_variable( "CARGO_REGISTRY_TOKEN", self.client.set_secret("CARGO_REGISTRY_TOKEN", crates_token),