From 38b12fcdc17d4df71d9d21271a8a6fa28a54ab64 Mon Sep 17 00:00:00 2001 From: Ritesh Chitlangi Date: Thu, 29 Jul 2021 23:47:51 +0800 Subject: [PATCH] fix CI to login into cargo before publishing --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 21e9791..6e0b501 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,6 +39,7 @@ steps: commands: - export CARGO_HOME=/tmp/cargo - export CARGO_TARGET_DIR=/tmp/cargo-target + - cargo login - export EPP_CLIENT_VERSION_CHANGE=$(git diff HEAD^ HEAD -- epp-client/Cargo.toml | grep -E "([+\-]){1}version" | wc -l) - if [ $EPP_CLIENT_VERSION_CHANGE -eq 2 ]; then echo "epp-client version updated. publishing to crates.io" && cd epp-client && cargo publish && cd .. ; else echo "epp-client version unchanged"; fi - export EPP_CLIENT_MACROS_VERSION_CHANGE=$(git diff HEAD^ HEAD -- epp-client-macros/Cargo.toml | grep -E "([+\-]){1}version" | wc -l)