Skip to content

Commit

Permalink
feat: goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jul 18, 2021
1 parent 474c66f commit d4d01da
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor
bin
coverage.txt
dist
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
gomod:
proxy: true
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser

nfpms:
- homepage: 'https://github.com/caarlos0/{{ .ProjectName }}'
description: 'Plot your repository stars over time.'
maintainer: Carlos Alexandro Becker <[email protected]>
license: MIT
vendor: Becker Software
formats:
- apk
- deb
- rpm

release:
footer: |
---
_Released with [GoReleaser Pro](https://goreleaser.com/pro)!_

0 comments on commit d4d01da

Please sign in to comment.