From 8c5d17d83dc1e3ba4d49eb4070f1ecc639110458 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 29 Mar 2023 08:46:07 +0800 Subject: [PATCH] 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 --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2b35505..2cd5376 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 }}-