summaryrefslogtreecommitdiff
path: root/scripts/release.sh
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-09-06 16:09:25 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-09-06 16:09:25 +0200
commitff68c8cd24baef66ebb038d237b8f501c84edde5 (patch)
treea719191dce466a03244a705337f58c8f83f6f926 /scripts/release.sh
parentc4ef50c1f566b86c8892fa344ade8d5ca66fb93b (diff)
Add script and configuration for Kubernetes
Diffstat (limited to 'scripts/release.sh')
-rwxr-xr-xscripts/release.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100755
index 0000000..9c513f4
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,10 @@
+if [ $# -eq 0 ]; then
+ echo "You must pass the version number."
+ exit 1
+fi
+
+sed -i "3s/.*/version = \"$1\"/" Cargo.toml
+cargo c
+git add Cargo.*
+git commit -m "release: version $1"
+git tag -a "v$1" -m "Version $1"