Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Garfield committed May 24, 2022
1 parent c75b8e7 commit 2bfc076
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/
sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' programs/scheduler/Cargo.toml

# Bump cronos-sdk
sed -i '' -e 's/^cronos-program =.*/cronos-program = { path = "..\/programs\/cronos", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml
sed -i '' -e 's/^cronos-health =.*/cronos-health = { path = "..\/programs\/health", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml
sed -i '' -e 's/^cronos-network =.*/cronos-network = { path = "..\/programs\/network", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml
sed -i '' -e 's/^cronos-pool =.*/cronos-pool = { path = "..\/programs\/pool", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml
sed -i '' -e 's/^cronos-scheduler =.*/cronos-scheduler = { path = "..\/programs\/scheduler", features = ["no-entrypoint"], version = "'${new_version}'" }/g' sdk/Cargo.toml
sed -i '' -e '3s/^version = "'${current_version}'"/version = "'${new_version}'"/g' sdk/Cargo.toml

# Bump cronos-cli
Expand All @@ -47,7 +50,6 @@ sleep 25

# Git commit
echo "$(git diff --stat | tail -n1)"
git checkout -b release/${new_version}
git add .
git commit -m "Bump from $current_version to $new_version"
git tag "v$new_version"
Expand Down
2 changes: 1 addition & 1 deletion scripts/cargo-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ sleep 25
cargo publish -p cronos-sdk
sleep 25
cargo publish -p cronos-cli
cargo publish -p cronos-metrics
cargo publish -p cronos-plugin
cargo publish -p cronos-stress
cargo publish -p cronos-telemetry

0 comments on commit 2bfc076

Please sign in to comment.