bump version after config changes

This commit is contained in:
Ritesh Chitlangi 2021-11-12 16:05:03 +08:00
parent e78a4368ae
commit c076066578
3 changed files with 16 additions and 12 deletions

View File

@ -8,7 +8,7 @@ platform:
steps: steps:
- name: check - name: check
image: ayravat/rust:1.53.0-ci image: ayravat/rust:1.56.1-ci
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh path: /root/.ssh
@ -25,7 +25,7 @@ steps:
- cargo check --all-targets - cargo check --all-targets
- name: fmt - name: fmt
image: ayravat/rust:1.53.0-ci image: ayravat/rust:1.56.1-ci
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh path: /root/.ssh
@ -42,7 +42,7 @@ steps:
- cargo fmt --all -- --check - cargo fmt --all -- --check
- name: clippy - name: clippy
image: ayravat/rust:1.53.0-ci image: ayravat/rust:1.56.1-ci
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh path: /root/.ssh
@ -59,7 +59,7 @@ steps:
- cargo clippy --workspace --all-targets -- -D warnings - cargo clippy --workspace --all-targets -- -D warnings
- name: test - name: test
image: ayravat/rust:1.53.0-ci image: ayravat/rust:1.56.1-ci
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh path: /root/.ssh
@ -76,7 +76,7 @@ steps:
- cargo test -- --nocapture - cargo test -- --nocapture
- name: crates.io - name: crates.io
image: ayravat/rust:1.53.0-docker image: ayravat/rust:1.56.1-docker
volumes: volumes:
- name: ssh - name: ssh
path: /root/.ssh path: /root/.ssh
@ -92,12 +92,15 @@ steps:
- export CARGO_HOME=/tmp/cargo/$DRONE_BRANCH - export CARGO_HOME=/tmp/cargo/$DRONE_BRANCH
- export CARGO_TARGET_DIR=/tmp/cargo-target/$DRONE_BRANCH - export CARGO_TARGET_DIR=/tmp/cargo-target/$DRONE_BRANCH
- mkdir -p $CARGO_HOME $CARGO_TARGET_DIR - 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) - cd epp-client
- 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 - cargo publish
- export EPP_CLIENT_MACROS_VERSION_CHANGE=$(git diff HEAD^ HEAD -- epp-client-macros/Cargo.toml | grep -E "([+\-]){1}version" | wc -l) - cd ..
- 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-macros
- cargo publish
when: when:
branch: master branch:
- 0.2
- 0.3
event: push event: push
volumes: volumes:

View File

@ -43,7 +43,7 @@ to eventually be RFC compliant with the EPP protocol.
Just add the following to your project's `Cargo.toml` Just add the following to your project's `Cargo.toml`
```toml ```toml
epp-client = "0.2" epp-client = "0.3"
``` ```
## Operation ## Operation
@ -96,6 +96,7 @@ async fn main() {
.iter() .iter()
.for_each(|chk| println!("Domain: {}, Available: {}", chk.domain.name, chk.domain.available)); .for_each(|chk| println!("Domain: {}, Available: {}", chk.domain.name, chk.domain.available));
// Close the connection
client.logout().await.unwrap(); client.logout().await.unwrap();
} }
``` ```

View File

@ -1,6 +1,6 @@
[package] [package]
name = "epp-client" name = "epp-client"
version = "0.2.0" version = "0.3.0"
edition = "2018" edition = "2018"
license = "MIT" license = "MIT"
authors = ["Ritesh Chitlangi <ritesh@ayravat.com>"] authors = ["Ritesh Chitlangi <ritesh@ayravat.com>"]