From a8be2459f023d461b6f2a339904355d463e9875b Mon Sep 17 00:00:00 2001 From: Julian Wecke Date: Sat, 25 May 2024 18:37:40 +0200 Subject: [PATCH] ci: inject release tag as go build tag. --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 81ac000..46217eb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,5 +21,7 @@ jobs: multi_binaries: true project_path: "./cmd/..." goversion: "go.mod" - ldflags: -X "main.version=${{ github.ref_name }}" + build_flags: -tags ${{ github.ref_name }} extra_files: LICENSE README.md + env: + CGO_ENABLED: 0