From 23e6097224326be8e46bda42e8a3335b4ba30a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 28 Nov 2019 14:27:15 +0100 Subject: [PATCH] 14.0.5 bump (#524) * 14.0.5 bump * Update the script. --- _automate/publish.sh | 21 ++++++++------------- core-client/Cargo.toml | 2 +- core-client/transports/Cargo.toml | 2 +- core/Cargo.toml | 2 +- derive/Cargo.toml | 2 +- http/Cargo.toml | 2 +- ipc/Cargo.toml | 2 +- pubsub/Cargo.toml | 2 +- pubsub/more-examples/Cargo.toml | 2 +- server-utils/Cargo.toml | 2 +- stdio/Cargo.toml | 2 +- tcp/Cargo.toml | 2 +- test/Cargo.toml | 2 +- ws/Cargo.toml | 2 +- 14 files changed, 21 insertions(+), 26 deletions(-) diff --git a/_automate/publish.sh b/_automate/publish.sh index 0db10a8c1..8a7f51e7d 100755 --- a/_automate/publish.sh +++ b/_automate/publish.sh @@ -2,20 +2,15 @@ set -exu -VERSION=$(grep "^version" ./core/Cargo.toml | sed -e 's/.*"\(.*\)"/\1/') -ORDER=(core server-utils tcp ws http ipc stdio pubsub core-client/transports core-client derive test) +# NOTE https://github.com/sunng87/cargo-release is required. +VERSION=$(grep "^version" ./core/Cargo.toml | sed -e 's/.*"\(.*\)"/\1/') echo "Publishing version $VERSION" cargo clean - -for crate in ${ORDER[@]}; do - cd $crate - echo "Publishing $crate@$VERSION" - sleep 5 - cargo publish $@ || read -p "\n\t Publishing $crate failed. Press [enter] to continue." - cd - -done - -echo "Tagging version $VERSION" -git tag -a v$VERSION -m "Version $VERSION" +read -p "\n\t Press [enter] to continue." +cargo release --dry-run --sign --skip-push --no-dev-version +read -p "\n\t Press [enter] to confirm release the plan." +cargo release --sign --skip-push --no-dev-version +echo "Release finished." +git push git push --tags diff --git a/core-client/Cargo.toml b/core-client/Cargo.toml index bf1188796..8b6ccad6c 100644 --- a/core-client/Cargo.toml +++ b/core-client/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["jsonrpc", "json-rpc", "json", "rpc", "serde"] license = "MIT" name = "jsonrpc-core-client" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" categories = [ "asynchronous", diff --git a/core-client/transports/Cargo.toml b/core-client/transports/Cargo.toml index 96ac533b6..d660c7ce0 100644 --- a/core-client/transports/Cargo.toml +++ b/core-client/transports/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["jsonrpc", "json-rpc", "json", "rpc", "serde"] license = "MIT" name = "jsonrpc-client-transports" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" categories = [ "asynchronous", diff --git a/core/Cargo.toml b/core/Cargo.toml index 155bb1057..d5d9dd6a4 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["jsonrpc", "json-rpc", "json", "rpc", "serde"] license = "MIT" name = "jsonrpc-core" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" categories = [ "asynchronous", diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 9e072bda9..71e6bb35e 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://github.com/paritytech/jsonrpc" license = "MIT" name = "jsonrpc-derive" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [lib] proc-macro = true diff --git a/http/Cargo.toml b/http/Cargo.toml index 0cc4da314..4b7f0f6b9 100644 --- a/http/Cargo.toml +++ b/http/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["jsonrpc", "json-rpc", "json", "rpc", "server"] license = "MIT" name = "jsonrpc-http-server" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] hyper = "0.12" diff --git a/ipc/Cargo.toml b/ipc/Cargo.toml index daa4037dc..77472f6a5 100644 --- a/ipc/Cargo.toml +++ b/ipc/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://github.com/paritytech/jsonrpc" license = "MIT" name = "jsonrpc-ipc-server" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] log = "0.4" diff --git a/pubsub/Cargo.toml b/pubsub/Cargo.toml index fc9c46372..fe0363942 100644 --- a/pubsub/Cargo.toml +++ b/pubsub/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["jsonrpc", "json-rpc", "json", "rpc", "macros"] license = "MIT" name = "jsonrpc-pubsub" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] log = "0.4" diff --git a/pubsub/more-examples/Cargo.toml b/pubsub/more-examples/Cargo.toml index b57f8610d..0010f3593 100644 --- a/pubsub/more-examples/Cargo.toml +++ b/pubsub/more-examples/Cargo.toml @@ -3,7 +3,7 @@ name = "jsonrpc-pubsub-examples" description = "Examples of Publish-Subscribe extension for jsonrpc." homepage = "https://github.com/paritytech/jsonrpc" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" authors = ["tomusdrw "] license = "MIT" diff --git a/server-utils/Cargo.toml b/server-utils/Cargo.toml index 213e828d1..9286c273e 100644 --- a/server-utils/Cargo.toml +++ b/server-utils/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["jsonrpc", "json-rpc", "json", "rpc", "serde"] license = "MIT" name = "jsonrpc-server-utils" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] bytes = "0.4" diff --git a/stdio/Cargo.toml b/stdio/Cargo.toml index dc9b8b5f3..e9d747da3 100644 --- a/stdio/Cargo.toml +++ b/stdio/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://github.com/paritytech/jsonrpc" license = "MIT" name = "jsonrpc-stdio-server" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] futures = "0.1.23" diff --git a/tcp/Cargo.toml b/tcp/Cargo.toml index 3ffe6c869..696f01449 100644 --- a/tcp/Cargo.toml +++ b/tcp/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://github.com/paritytech/jsonrpc" license = "MIT" name = "jsonrpc-tcp-server" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] log = "0.4" diff --git a/test/Cargo.toml b/test/Cargo.toml index d4b3d12ad..241142c32 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "jsonrpc-test" description = "Simple test framework for JSON-RPC." -version = "14.0.4" +version = "14.0.5" authors = ["Tomasz Drwięga "] license = "MIT" homepage = "https://github.com/paritytech/jsonrpc" diff --git a/ws/Cargo.toml b/ws/Cargo.toml index 4f359790d..408c5d89b 100644 --- a/ws/Cargo.toml +++ b/ws/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://github.com/paritytech/jsonrpc" license = "MIT" name = "jsonrpc-ws-server" repository = "https://github.com/paritytech/jsonrpc" -version = "14.0.4" +version = "14.0.5" [dependencies] jsonrpc-core = { version = "14.0", path = "../core" }