From fb69759be99cf1621689f1848b8c25dc0f7d4ba9 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 9 May 2022 23:45:51 +0800 Subject: [PATCH] Build script --- build-tools/cargo-publish.sh | 11 ++++++++++- sea-orm-migration/Cargo.toml | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/build-tools/cargo-publish.sh b/build-tools/cargo-publish.sh index 1cb61c94..6c183737 100644 --- a/build-tools/cargo-publish.sh +++ b/build-tools/cargo-publish.sh @@ -19,4 +19,13 @@ git commit -am "sea-orm-macros $1" cargo publish cd .. sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -sed -i 's/^sea-orm-macros [^,]*,/sea-orm-macros = { version = "\^'$1'",/' Cargo.toml \ No newline at end of file +sed -i 's/^sea-orm-macros [^,]*,/sea-orm-macros = { version = "\^'$1'",/' Cargo.toml +git commit -am "$1" +cargo publish +sleep 30 +cd sea-orm-migration +sed -i 's/^version.*$/'"version = \"$1\"/" Cargo.toml +sed -i 's/^sea-orm-cli [^,]*,/sea-orm-cli = { version = "\^'$1'",/' Cargo.toml +sed -i 's/^sea-orm [^,]*,/sea-orm = { version = "\^'$1'",/' Cargo.toml +git commit -am "sea-orm-migration $1" +cargo publish \ No newline at end of file diff --git a/sea-orm-migration/Cargo.toml b/sea-orm-migration/Cargo.toml index 3f7eb9f1..57a21cf2 100644 --- a/sea-orm-migration/Cargo.toml +++ b/sea-orm-migration/Cargo.toml @@ -22,8 +22,8 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } async-trait = { version = "^0.1" } clap = { version = "^2.33" } dotenv = { version = "^0.15" } -sea-orm = { path = "../", default-features = false, features = ["macros"] } -sea-orm-cli = { path = "../sea-orm-cli", default-features = false } +sea-orm = { version = "^0.7.2", path = "../", default-features = false, features = ["macros"] } +sea-orm-cli = { version = "^0.7.2", path = "../sea-orm-cli", default-features = false } sea-schema = { version = "^0.8.0" } tracing = { version = "0.1", features = ["log"] } tracing-subscriber = { version = "0.3", features = ["env-filter"] }