Skip to content

Commit

Permalink
Merge pull request #2 from Control-D-Inc/goreleaser
Browse files Browse the repository at this point in the history
Add goreleaser file
  • Loading branch information
cuonglm authored Dec 13, 2022
2 parents 4d75333 + 0c3ee9a commit 3968a67
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

dist/
44 changes: 44 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
goos:
- linux
- windows
- darwin
goarch:
- 386
- arm
- mips
- amd64
- arm64
goarm:
- 5
- 6
- 7
gomips:
- softfloat
main: ./cmd/ctrld
archives:
- format_overrides:
- goos: windows
format: zip
strip_parent_binary_folder: true
wrap_in_directory: true
files:
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'

0 comments on commit 3968a67

Please sign in to comment.