diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2c4c990..429bd6d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -4,7 +4,7 @@ before: hooks: # You may remove this if you don't use go modules. - go mod tidy - - bash check_tag.sh {{.Version}} + - git tag -v {{.Version}} builds: - env: - CGO_ENABLED=0 diff --git a/check_tag.sh b/check_tag.sh index db59cfe..33f1f2b 100644 --- a/check_tag.sh +++ b/check_tag.sh @@ -4,7 +4,6 @@ TAG=$1 [ $# -ne 1 ] && echo "$0: git tag missing" && exit 1 -#! git tag -v $TAG &> /dev/null && echo "ERROR: git tag $TAG not signed" && exit 1 -! git tag -v $TAG && echo "ERROR: git tag $TAG not signed" && exit 1 +! git tag -v $TAG &> /dev/null && echo "ERROR: git tag $TAG not signed" && exit 1 exit 0