mirror of
https://github.com/MickMake/GoSungrow.git
synced 2025-03-25 09:01:43 +01:00
24 lines
312 B
Bash
Executable File
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
|