Update build script

This commit is contained in:
Chris Tsang 2023-02-04 16:10:10 +08:00
parent 04c2f4d156
commit 36f1911a02

View File

@ -4,37 +4,31 @@ 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
# Bump `sea-orm` version
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
git commit -am "$1"
# Bump examples' dependency version
cd examples