Skip to content

Commit

Permalink
feat: version from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Feb 22, 2021
1 parent f6c4898 commit 17ca5af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ builds:
hooks:
post:
- upx "{{ .Path }}"
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- id: build
main: ./main.go
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
archives:
-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

var (
Version string = "v3.1.6"
Version string = "v0.0.0"
configPath string
dep c.Dependencies
ctx c.Context
Expand Down

0 comments on commit 17ca5af

Please sign in to comment.