fix(ci): goreleaser hooks only once

This commit is contained in:
Denis Gukov 2021-06-25 13:53:50 +05:00
parent 794ec2ab41
commit 38ab6adfa2
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,10 @@
# for building binaries and packages for distributions and releasing on github
dist: bin
before:
hooks:
- task compile
builds:
- binary: semaphore
main: ./cli/main.go
@ -20,8 +24,8 @@ builds:
ignore:
- goos: darwin
goarch: 386
hooks:
pre: task compile
# hooks:
# pre: task compile
archives:
-
@ -43,7 +47,7 @@ snapshot:
name_template: "{{ .Timestamp }}-{{ .ShortCommit }}-SNAPSHOT"
nfpms:
-
-
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
vendor: Castaway Consulting LLC

View File

@ -50,7 +50,7 @@ tasks:
desc: Installs tools needed
dir: web2
vars:
GORELEASER_VERSION: "0.67.0"
GORELEASER_VERSION: "0.159.0"
GOLINTER_VERSION: "1.31.0"
cmds:
- go install github.com/cespare/reflex