chore: use file instead
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-12-22 12:42:37 +01:00
parent 27e1c60317
commit 326e4b6fa8

View File

@ -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),