Skip to content

Commit

Permalink
actually, use goreleaser hook to just regenerate the version file
Browse files Browse the repository at this point in the history
  • Loading branch information
DireLines committed Apr 13, 2024
1 parent c8cdd64 commit 1870af4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
before:
hooks:
- echo "{{ .Env.VERSION }}" > version

builds:
- binary: runpodctl
goos:
Expand All @@ -11,8 +15,6 @@ builds:
- CGO_ENABLED=0
flags:
- -mod=mod
ldflags:
- -X 'main.Version={{ .Env.VERSION }}'

release:
prerelease: auto
Expand Down

0 comments on commit 1870af4

Please sign in to comment.