From e3fccb3f81b36f99ccbdc28b1366166ae5a5f08a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 29 Nov 2024 04:35:03 -0500 Subject: [PATCH] Fixing woodpecker secrets warning. (#5237) --- .woodpecker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 51c14af7d..ded66b557 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -280,13 +280,15 @@ steps: # using https://github.com/pksunkara/cargo-workspaces publish_to_crates_io: image: *rust_image + environment: + CARGO_API_TOKEN: + from_secret: cargo_api_token commands: - *install_binstall # Install cargo-workspaces - cargo binstall -y cargo-workspaces - cp -r migrations crates/db_schema/ - cargo workspaces publish --token "$CARGO_API_TOKEN" --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}" - secrets: [cargo_api_token] when: - event: tag