summaryrefslogtreecommitdiff
path: root/scripts/release
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-09-06 16:29:40 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-09-06 16:29:40 +0200
commitb8b0f661e6857731215798c6759e0ade9b3099f6 (patch)
treef5b887aec46e5521f90da61d98267d2170daebc6 /scripts/release
parentff68c8cd24baef66ebb038d237b8f501c84edde5 (diff)
Fix scripts and add compose
Diffstat (limited to 'scripts/release')
-rwxr-xr-xscripts/release10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/release b/scripts/release
new file mode 100755
index 0000000..9c513f4
--- /dev/null
+++ b/scripts/release
@@ -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"