Skip to content

Commit

Permalink
fix: version script
Browse files Browse the repository at this point in the history
  • Loading branch information
realfresh authored and realfresh committed Oct 20, 2024
1 parent 9cf6b6d commit ee4786c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ fi
# Update version in Cargo.toml and commit it
# =================================================================

sed -i "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml
# echo "Next: $VERSION_NEXT"
# sed -i "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml
sed -i '' "s/^version = .*/version = \"$VERSION_NEXT\"/" Cargo.toml
cargo generate-lockfile # Update version in Cargo.lock
git add .
git commit -m "build: bump version to v$VERSION_NEXT"
Expand All @@ -58,4 +60,4 @@ git commit -m "build: bump version to v$VERSION_NEXT"

echo "Tagging Commit & Pushing Changes: v$VERSION_NEXT"
git tag -a "v$VERSION_NEXT" -m "Release: v$VERSION_NEXT"
git push -u origin main --follow-tags
git push -u origin main --follow-tags

0 comments on commit ee4786c

Please sign in to comment.