Skip to content

Commit

Permalink
fix: set explicit build tag in release
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Oct 7, 2024
1 parent d240aa1 commit c00d9d7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ tasks:
release:
desc: "Release"
deps: [clean]
vars:
RELEASE_TAG:
sh: echo "{{.TAG}}" | sed -E "s/-rc.+$//"
cmds:
- go run github.com/goreleaser/goreleaser
- GORELEASER_CURRENT_TAG={{.RELEASE_TAG}} go run github.com/goreleaser/goreleaser


release-local:
desc: "Build a release binary"
vars:
RELEASE_TAG:
sh: echo "{{.TAG}}" | sed -E "s/-rc.+$//"
cmds:
- go run github.com/goreleaser/goreleaser --clean --snapshot
- GORELEASER_CURRENT_TAG={{.RELEASE_TAG}} go run github.com/goreleaser/goreleaser --clean --snapshot

test:
desc: "Runs tests"
Expand Down

0 comments on commit c00d9d7

Please sign in to comment.