We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 137adf9 commit c82b91aCopy full SHA for c82b91a
.github/workflows/release.yml
@@ -19,10 +19,14 @@ jobs:
19
with:
20
go-version: "1.23"
21
22
+ - name: Extract Version from Tag
23
+ run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
24
+
25
- name: Run GoReleaser
26
uses: goreleaser/goreleaser-action@v6
27
28
version: latest
29
args: release --clean
30
env:
31
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
+ GOFLAGS: "-ldflags=-X main.Version=${VERSION}"
0 commit comments