From c0760665789dd6927ffb9cac6816b8981a6ca7a2 Mon Sep 17 00:00:00 2001 From: Ritesh Chitlangi Date: Fri, 12 Nov 2021 16:05:03 +0800 Subject: [PATCH] bump version after config changes --- .drone.yml | 23 +++++++++++++---------- README.md | 3 ++- epp-client/Cargo.toml | 2 +- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 53898ef..2b93678 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: check - image: ayravat/rust:1.53.0-ci + image: ayravat/rust:1.56.1-ci volumes: - name: ssh path: /root/.ssh @@ -25,7 +25,7 @@ steps: - cargo check --all-targets - name: fmt - image: ayravat/rust:1.53.0-ci + image: ayravat/rust:1.56.1-ci volumes: - name: ssh path: /root/.ssh @@ -42,7 +42,7 @@ steps: - cargo fmt --all -- --check - name: clippy - image: ayravat/rust:1.53.0-ci + image: ayravat/rust:1.56.1-ci volumes: - name: ssh path: /root/.ssh @@ -59,7 +59,7 @@ steps: - cargo clippy --workspace --all-targets -- -D warnings - name: test - image: ayravat/rust:1.53.0-ci + image: ayravat/rust:1.56.1-ci volumes: - name: ssh path: /root/.ssh @@ -76,7 +76,7 @@ steps: - cargo test -- --nocapture - name: crates.io - image: ayravat/rust:1.53.0-docker + image: ayravat/rust:1.56.1-docker volumes: - name: ssh path: /root/.ssh @@ -92,12 +92,15 @@ 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 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) - - if [ $EPP_CLIENT_MACROS_VERSION_CHANGE -eq 2 ]; then echo "epp-client-macros version updated. publishing to crates.io" && cd epp-client-macros && cargo publish && cd .. ; else echo "epp-client-macros version unchanged"; fi + - cd epp-client + - cargo publish + - cd .. + - cd epp-client-macros + - cargo publish when: - branch: master + branch: + - 0.2 + - 0.3 event: push volumes: diff --git a/README.md b/README.md index 94325f7..48e6b2f 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ to eventually be RFC compliant with the EPP protocol. Just add the following to your project's `Cargo.toml` ```toml -epp-client = "0.2" +epp-client = "0.3" ``` ## Operation @@ -96,6 +96,7 @@ async fn main() { .iter() .for_each(|chk| println!("Domain: {}, Available: {}", chk.domain.name, chk.domain.available)); + // Close the connection client.logout().await.unwrap(); } ``` diff --git a/epp-client/Cargo.toml b/epp-client/Cargo.toml index 59ba041..380c376 100644 --- a/epp-client/Cargo.toml +++ b/epp-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "epp-client" -version = "0.2.0" +version = "0.3.0" edition = "2018" license = "MIT" authors = ["Ritesh Chitlangi "]