Fixing woodpecker secrets warning. (#5237)

This commit is contained in:
Dessalines 2024-11-29 04:35:03 -05:00 committed by GitHub
parent 3d7fbde091
commit e3fccb3f81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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