Skip to content

Commit

Permalink
Merge pull request #130 from basenana/goreleaser
Browse files Browse the repository at this point in the history
add goreleaesr
  • Loading branch information
zwwhdls authored Jun 27, 2024
2 parents 1fb7200 + ac13514 commit 679a160
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
project_name: nanafs
env:
- GO111MODULE=on
- CGO_ENABLED=1
- REVISIONDATE={{ .Env.REVISIONDATE }}
before:
hooks:
- go mod download
builds:
- id: nanafs-darwin-amd64
ldflags: -s -w -X github.com/basenana/nanafs/version.gitCommit={{.ShortCommit}} -X github.com/basenana/nanafs/version.gitTag={{.Version}} -X github.com/basenana/nanafs/version.revisionDate={{.Env.REVISIONDATE}}
main: .
goos:
- darwin
goarch:
- amd64
- id: nanafs-darwin-arm64
ldflags: -s -w -X github.com/basenana/nanafs/version.gitCommit={{.ShortCommit}} -X github.com/basenana/nanafs/version.gitTag={{.Version}} -X github.com/basenana/nanafs/version.revisionDate={{.Env.REVISIONDATE}}
main: .
goos:
- darwin
goarch:
- arm64
- id: nanafs-linux-amd64
ldflags: -s -w -X github.com/basenana/nanafs/version.gitCommit={{.ShortCommit}} -X github.com/basenana/nanafs/version.gitTag={{.Version}} -X github.com/basenana/nanafs/version.revisionDate={{.Env.REVISIONDATE}}
main: .
goos:
- linux
goarch:
- amd64
- id: nanafs-linux-arm64
ldflags: -s -w -X github.com/basenana/nanafs/version.gitCommit={{.ShortCommit}} -X github.com/basenana/nanafs/version.gitTag={{.Version}} -X github.com/basenana/nanafs/version.revisionDate={{.Env.REVISIONDATE}}
main: .
goos:
- linux
goarch:
- arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"

0 comments on commit 679a160

Please sign in to comment.