Skip to content

Commit

Permalink
Update build-tools/bump-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Aug 6, 2024
1 parent cc015e2 commit 4281853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-tools/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sleep 1
# Bump `seaography-cli` version
cd cli
sed -i 's/^version.*$/version = "'$1'"/' Cargo.toml
sed -i 's/^seaography-generator [^,]*,/seaography-generator = { version = "\^'$1'",/' Cargo.toml
sed -i 's/^seaography-generator [^,]*,/seaography-generator = { version = "~'$1'",/' Cargo.toml
git commit -am "seaography-cli $1"
cd ..
sleep 1
Expand All @@ -23,6 +23,6 @@ sleep 1

# Bump examples' dependency version
cd examples
find . -depth -type f -name '*.toml' -exec sed -i 's/^version.*$/version = "'$1'"/' {} \;
find . -depth -type f -name '*.toml' -exec sed -i 's/^version = "\^.*" # seaography version$/version = "\^'$1'" # seaography version/' {} \;
find . -depth -type f -name '*.toml' -exec sed -i 's/^version = ".*" # seaography version$/version = "~'$1'" # seaography version/' {} \;
find . -depth -type f -name '*.toml' -exec sed -i 's/^version = "[0-9].*"$/version = "'$1'"/' {} \;
git commit -am "update examples"

0 comments on commit 4281853

Please sign in to comment.