Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Feb 4, 2023
1 parent 04c2f4d commit 36f1911
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions build-tools/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36f1911

Please sign in to comment.