GoSungrow/bin/release.sh
2022-02-10 12:55:11 +11:00

24 lines
312 B
Bash
Executable File

#!/bin/bash
VERSION="$1"
if [ -z "${VERSION}" ]
then
echo "Need a version number. EG: v1.42"
exit 1
fi
# vi defaults/const.go
git tag -d "${VERSION}"
rm -rf dist/
git add .
git commit -m "Committed ${VERSION}"
git tag "${VERSION}"
goreleaser build
git add .
git commit -m "Released ${VERSION}"
git push