diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-09-02 11:15:52 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-09-02 11:15:52 +0200 |
commit | 60d844ba692893dd3c72edfe0a9c612ae6c993cf (patch) | |
tree | f68cd78aca51dc6483139b3376eafbdedb37049e /release.sh | |
parent | 2e894d1eab0385ea30017624dd761eb5b65fb28b (diff) |
cd: add `release.sh` and fix text
Diffstat (limited to 'release.sh')
-rwxr-xr-x | release.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..04e2f2f --- /dev/null +++ b/release.sh @@ -0,0 +1,7 @@ +if [ $# -eq 0 ]; then + echo "You must pass the version number." + exit 1 +fi + +sed -i "3s/.*/version = \"$1\"/" Cargo.toml +git tag -a "v$1" -m "Version $1" |