Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed May 23, 2024
1 parent 184173a commit 5ddebcf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e

version="$1"
shift

if [ -z "$version" ]; then
echo "usage: release.sh version"
exit 1
fi

sed -i -re 's/^version = ".*/version = "'"$version"'"/' Cargo.toml
cargo update
git add -A
git commit . -m "$version"
git push
git tag -a "$version" -m "$version"
git push origin "$version"

0 comments on commit 5ddebcf

Please sign in to comment.