This commit is contained in:
Dessalines 2021-08-25 10:12:41 -04:00
parent 9a7395c688
commit f8096f4c03

View file

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