ccl/release.sh

13 lines
230 B
Bash
Raw Normal View History

2022-07-19 14:38:29 -05:00
#!/usr/bin/env bash
vers="$1"
if [[ $vers = v*.*.* ]]; then
echo $vers >cmd/version.txt
git add cmd/version.txt
git commit -m "Release version $vers"
git tag $vers
else
echo "bad version format"
exit 1
fi