diff --git a/build-tools/bump-version.sh b/build-tools/bump-version.sh new file mode 100644 index 00000000..5e1296fe --- /dev/null +++ b/build-tools/bump-version.sh @@ -0,0 +1,43 @@ +#!/bin/bash +set -e + +# Bump `sea-orm-codegen` version +cd sea-orm-codegen +sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml +git commit -am "sea-orm-codegen $1" +cd .. +sleep 1 + +# Bump `sea-orm-cli` version +cd sea-orm-cli +sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml +sed -i 's/^sea-orm-codegen [^,]*,/sea-orm-codegen = { version = "\^'$1'",/' Cargo.toml +git commit -am "sea-orm-cli $1" +cd .. +sleep 1 + +# Bump `sea-orm-macros` version +cd sea-orm-macros +sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml +git commit -am "sea-orm-macros $1" +cd .. +sleep 1 +sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml +sed -i 's/^sea-orm-macros [^,]*,/sea-orm-macros = { version = "\^'$1'",/' Cargo.toml +git commit -am "$1" # publish sea-orm +sleep 1 + +# Bump `sea-orm-migration` version +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" +cd .. +sleep 1 + +# Bump examples' dependency version +cd examples +find . -depth -type f -name '*.toml' -exec sed -i 's/^version = "\^.*" # sea-orm version$/version = "\^'$1'" # sea-orm version/' {} \; +find . -depth -type f -name '*.toml' -exec sed -i 's/^version = "\^.*" # sea-orm-migration version$/version = "\^'$1'" # sea-orm-migration version/' {} \; +git commit -am "update examples" \ No newline at end of file diff --git a/build-tools/cargo-publish.sh b/build-tools/cargo-publish.sh index 00519a78..ec02718f 100644 --- a/build-tools/cargo-publish.sh +++ b/build-tools/cargo-publish.sh @@ -1,32 +1,28 @@ #!/bin/bash set -e + +# publish `sea-orm-codegen` cd sea-orm-codegen -sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -git commit -am "sea-orm-codegen $1" cargo publish cd .. -sleep 30 +sleep 1 + +# publish `sea-orm-cli` cd sea-orm-cli -sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -sed -i 's/^sea-orm-codegen [^,]*,/sea-orm-codegen = { version = "\^'$1'",/' Cargo.toml -git commit -am "sea-orm-cli $1" cargo publish cd .. -sleep 30 +sleep 1 + +# publish `sea-orm-macros` cd sea-orm-macros -sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -git commit -am "sea-orm-macros $1" cargo publish cd .. -sleep 30 -sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml -sed -i 's/^sea-orm-macros [^,]*,/sea-orm-macros = { version = "\^'$1'",/' Cargo.toml -git commit -am "$1" -cargo publish # publish sea-orm -sleep 30 +sleep 1 + +# publish `sea-orm` +cargo publish +sleep 1 + +# publish `sea-orm-migration` 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/examples/actix3_example/Cargo.toml b/examples/actix3_example/Cargo.toml index fd14fbc8..8d1f8d6f 100644 --- a/examples/actix3_example/Cargo.toml +++ b/examples/actix3_example/Cargo.toml @@ -25,7 +25,7 @@ migration = { path = "migration" } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "debug-print", "runtime-async-std-native-tls", diff --git a/examples/actix3_example/entity/Cargo.toml b/examples/actix3_example/entity/Cargo.toml index ba8a985b..3a8ca8c0 100644 --- a/examples/actix3_example/entity/Cargo.toml +++ b/examples/actix3_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/actix3_example/migration/Cargo.toml b/examples/actix3_example/migration/Cargo.toml index 2ba5e0a1..54937369 100644 --- a/examples/actix3_example/migration/Cargo.toml +++ b/examples/actix3_example/migration/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-async-std-native-tls", diff --git a/examples/actix_example/Cargo.toml b/examples/actix_example/Cargo.toml index 7681121c..e7b0555f 100644 --- a/examples/actix_example/Cargo.toml +++ b/examples/actix_example/Cargo.toml @@ -25,7 +25,7 @@ migration = { path = "migration" } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "debug-print", "runtime-actix-native-tls", diff --git a/examples/actix_example/entity/Cargo.toml b/examples/actix_example/entity/Cargo.toml index ba8a985b..3a8ca8c0 100644 --- a/examples/actix_example/entity/Cargo.toml +++ b/examples/actix_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/actix_example/migration/Cargo.toml b/examples/actix_example/migration/Cargo.toml index c113ac97..5665d977 100644 --- a/examples/actix_example/migration/Cargo.toml +++ b/examples/actix_example/migration/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-actix-native-tls", diff --git a/examples/axum_example/Cargo.toml b/examples/axum_example/Cargo.toml index 6538d6c2..a45ad043 100644 --- a/examples/axum_example/Cargo.toml +++ b/examples/axum_example/Cargo.toml @@ -26,7 +26,7 @@ migration = { path = "migration" } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "debug-print", "runtime-tokio-native-tls", diff --git a/examples/axum_example/entity/Cargo.toml b/examples/axum_example/entity/Cargo.toml index ba8a985b..3a8ca8c0 100644 --- a/examples/axum_example/entity/Cargo.toml +++ b/examples/axum_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/axum_example/migration/Cargo.toml b/examples/axum_example/migration/Cargo.toml index d816bce1..bcc91fd5 100644 --- a/examples/axum_example/migration/Cargo.toml +++ b/examples/axum_example/migration/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/graphql_example/Cargo.toml b/examples/graphql_example/Cargo.toml index d7659c86..7438eb16 100644 --- a/examples/graphql_example/Cargo.toml +++ b/examples/graphql_example/Cargo.toml @@ -19,7 +19,7 @@ migration = { path = "migration" } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "runtime-tokio-native-tls", # "sqlx-postgres", diff --git a/examples/graphql_example/entity/Cargo.toml b/examples/graphql_example/entity/Cargo.toml index 09bc785a..d7816164 100644 --- a/examples/graphql_example/entity/Cargo.toml +++ b/examples/graphql_example/entity/Cargo.toml @@ -16,4 +16,4 @@ version = "^3.0.38" [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/graphql_example/migration/Cargo.toml b/examples/graphql_example/migration/Cargo.toml index 8101cb8b..ea64e6b6 100644 --- a/examples/graphql_example/migration/Cargo.toml +++ b/examples/graphql_example/migration/Cargo.toml @@ -14,7 +14,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/jsonrpsee_example/Cargo.toml b/examples/jsonrpsee_example/Cargo.toml index 560b0f17..c71ea1bc 100644 --- a/examples/jsonrpsee_example/Cargo.toml +++ b/examples/jsonrpsee_example/Cargo.toml @@ -23,7 +23,7 @@ simplelog = "*" [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "debug-print", "runtime-tokio-native-tls", diff --git a/examples/jsonrpsee_example/entity/Cargo.toml b/examples/jsonrpsee_example/entity/Cargo.toml index ba8a985b..3a8ca8c0 100644 --- a/examples/jsonrpsee_example/entity/Cargo.toml +++ b/examples/jsonrpsee_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/jsonrpsee_example/migration/Cargo.toml b/examples/jsonrpsee_example/migration/Cargo.toml index d860e7e3..d4de8385 100644 --- a/examples/jsonrpsee_example/migration/Cargo.toml +++ b/examples/jsonrpsee_example/migration/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/poem_example/Cargo.toml b/examples/poem_example/Cargo.toml index fa5931a8..c9b6a23c 100644 --- a/examples/poem_example/Cargo.toml +++ b/examples/poem_example/Cargo.toml @@ -19,7 +19,7 @@ migration = { path = "migration" } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "debug-print", "runtime-tokio-native-tls", diff --git a/examples/poem_example/entity/Cargo.toml b/examples/poem_example/entity/Cargo.toml index ba8a985b..3a8ca8c0 100644 --- a/examples/poem_example/entity/Cargo.toml +++ b/examples/poem_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/poem_example/migration/Cargo.toml b/examples/poem_example/migration/Cargo.toml index d860e7e3..d4de8385 100644 --- a/examples/poem_example/migration/Cargo.toml +++ b/examples/poem_example/migration/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/rocket_example/Cargo.toml b/examples/rocket_example/Cargo.toml index e9176049..49cc2856 100644 --- a/examples/rocket_example/Cargo.toml +++ b/examples/rocket_example/Cargo.toml @@ -29,7 +29,7 @@ path = "../../sea-orm-rocket/lib" # remove this line in your own project and use [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "runtime-tokio-native-tls", "sqlx-postgres", diff --git a/examples/rocket_example/entity/Cargo.toml b/examples/rocket_example/entity/Cargo.toml index c2c09608..2e54f91c 100644 --- a/examples/rocket_example/entity/Cargo.toml +++ b/examples/rocket_example/entity/Cargo.toml @@ -15,4 +15,4 @@ rocket = { version = "0.5.0-rc.1", features = [ [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/rocket_example/migration/Cargo.toml b/examples/rocket_example/migration/Cargo.toml index 757b5f29..03ac8106 100644 --- a/examples/rocket_example/migration/Cargo.toml +++ b/examples/rocket_example/migration/Cargo.toml @@ -14,7 +14,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-native-tls", diff --git a/examples/tonic_example/Cargo.toml b/examples/tonic_example/Cargo.toml index e2720053..91a251e0 100644 --- a/examples/tonic_example/Cargo.toml +++ b/examples/tonic_example/Cargo.toml @@ -19,7 +19,7 @@ serde = "1.0" [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version features = [ "debug-print", "runtime-tokio-rustls", diff --git a/examples/tonic_example/entity/Cargo.toml b/examples/tonic_example/entity/Cargo.toml index ba8a985b..3a8ca8c0 100644 --- a/examples/tonic_example/entity/Cargo.toml +++ b/examples/tonic_example/entity/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1", features = ["derive"] } [dependencies.sea-orm] path = "../../../" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm version diff --git a/examples/tonic_example/migration/Cargo.toml b/examples/tonic_example/migration/Cargo.toml index b3b55c13..f77bb997 100644 --- a/examples/tonic_example/migration/Cargo.toml +++ b/examples/tonic_example/migration/Cargo.toml @@ -13,7 +13,7 @@ async-std = { version = "^1", features = ["attributes", "tokio1"] } [dependencies.sea-orm-migration] path = "../../../sea-orm-migration" # remove this line in your own project -version = "^0.8.0" +version = "^0.9.0" # sea-orm-migration version features = [ # Enable following runtime and db backend features if you want to run migration via CLI # "runtime-tokio-rustls",