Skip to content

Commit 755598f

Browse files
committed
build: add release.sh to update package version
1 parent 887930b commit 755598f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
VERSION="$1"
4+
5+
sed -i '/\[package\]/,/^version = "[^"]*"$/ s/^version = "[^"]*"$/version = "'"$VERSION"'"/' Cargo.toml

0 commit comments

Comments
 (0)