chore: refactor release process to use main.Version flag

- Change the `drone-ssh` version flag to `main.Version` in `.goreleaser.yaml`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2023-03-29 08:46:07 +08:00
parent 050e0e6efd
commit 8c5d17d83d

View File

@ -59,7 +59,7 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X github.com/appleboy/drone-ssh.Version={{.Version}}
- -X main.Version={{.Version}}
binary: >-
{{ .ProjectName }}-
{{- if .IsSnapshot }}{{ .Branch }}-