fix cargo token read for publish
This commit is contained in:
parent
11f7e4bd4b
commit
bcb9866732
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue