Skip to content

Commit e3fccb3

Browse files
authored
Fixing woodpecker secrets warning. (#5237)
1 parent 3d7fbde commit e3fccb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.woodpecker.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,15 @@ steps:
280280
# using https://github.com/pksunkara/cargo-workspaces
281281
publish_to_crates_io:
282282
image: *rust_image
283+
environment:
284+
CARGO_API_TOKEN:
285+
from_secret: cargo_api_token
283286
commands:
284287
- *install_binstall
285288
# Install cargo-workspaces
286289
- cargo binstall -y cargo-workspaces
287290
- cp -r migrations crates/db_schema/
288291
- cargo workspaces publish --token "$CARGO_API_TOKEN" --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}"
289-
secrets: [cargo_api_token]
290292
when:
291293
- event: tag
292294

0 commit comments

Comments
 (0)