Skip to content

Commit

Permalink
fix goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredga committed Oct 19, 2021
1 parent 5dbde72 commit ca8de48
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
project_name: gomod_exporter

builds:
- id: binary
-
&template
id: pusher
dir: pusher
binary: gomod_pusher
dir: .
env:
- CGO_ENABLED=0
ldflags:
Expand All @@ -19,6 +21,11 @@ builds:
- darwin
goarch:
- amd64
-
<<: *template
id: exporter
dir: exporter
binary: gomod_exporter

archives:
- id: archives
Expand All @@ -28,13 +35,14 @@ archives:
format: "tar.gz"
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
wrap_in_directory: true
- id: archives-zip
builds:
- pusher
- exporter
format: "zip"
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
wrap_in_directory: true
files:
- LICENSE*
- README*
- CHANGELOG*
- docs/*
- assets/*
- static/*
- templates/*

checksum:
name_template: checksums.txt
Expand Down

0 comments on commit ca8de48

Please sign in to comment.