From bcb986673246b654eb6284e76852e9099055335c Mon Sep 17 00:00:00 2001 From: Ritesh Chitlangi Date: Fri, 12 Nov 2021 17:30:32 +0800 Subject: [PATCH] fix cargo token read for publish --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2b93678..a6de865 100644 --- a/.drone.yml +++ b/.drone.yml @@ -92,11 +92,12 @@ steps: - export CARGO_HOME=/tmp/cargo/$DRONE_BRANCH - export CARGO_TARGET_DIR=/tmp/cargo-target/$DRONE_BRANCH - mkdir -p $CARGO_HOME $CARGO_TARGET_DIR + - export CARGO_TOKEN=$(grep 'token' $HOME/.cargo/credentials | sed -e 's/\"//g' | awk '{print $3}') - cd epp-client - - cargo publish + - cargo publish --token $CARGO_TOKEN - cd .. - cd epp-client-macros - - cargo publish + - cargo publish --token $CARGO_TOKEN when: branch: - 0.2