mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-02-04 12:02:47 -06:00
13 lines
230 B
Bash
13 lines
230 B
Bash
|
#!/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
|