fix_deploy_prod_script_2
Dessalines 2021-08-25 10:12:41 -04:00
parent 9a7395c688
commit f8096f4c03
1 changed files with 4 additions and 0 deletions

View File

@ -123,9 +123,13 @@ steps:
# using https://github.com/pksunkara/cargo-workspaces
- name: publish to crates.io
image: rust:1
environment:
CARGO_TOKEN:
from_secret: cargo_api_token
commands:
- cargo install cargo-workspaces
- cp -r migrations crates/db_queries/
- cargo login "${CARGO_TOKEN}"
- cargo workspaces publish --from-git --allow-branch main --yes custom "${DRONE_TAG}"
when:
ref: