Skip to content

Commit c82b91a

Browse files
committed
try custom tag
1 parent 137adf9 commit c82b91a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
with:
2020
go-version: "1.23"
2121

22+
- name: Extract Version from Tag
23+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
24+
2225
- name: Run GoReleaser
2326
uses: goreleaser/goreleaser-action@v6
2427
with:
2528
version: latest
2629
args: release --clean
2730
env:
2831
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
GOFLAGS: "-ldflags=-X main.Version=${VERSION}"

0 commit comments

Comments
 (0)