From 0f70450eabc02a0020b68776a41cc7216bbd5a94 Mon Sep 17 00:00:00 2001 From: Julian Wecke Date: Wed, 22 May 2024 19:01:48 +0200 Subject: [PATCH] build with version tag --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c658a15..81ac000 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,4 +21,5 @@ jobs: multi_binaries: true project_path: "./cmd/..." goversion: "go.mod" - extra_files: LICENSE README.md + ldflags: -X "main.version=${{ github.ref_name }}" + extra_files: LICENSE README.md