blob: 86e3130235a33411e9b61cea9f838ca8d25ffb1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
if [ $# -eq 0 ]; then
echo "You must pass the version number."
exit 1
fi
sed -i "3s/.*/version = \"$1\"/" Cargo.toml
sed -i "12s/.*/LABEL version=\"$1\"/" Dockerfile
cargo c
git add Cargo.*
git commit -m "release: version $1"
git tag -a "v$1" -m "Version $1"
|