Skip to content

Commit

Permalink
add go releaser
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT committed Feb 15, 2022
1 parent 654e89e commit aa8fada
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Check the documentation at https://goreleaser.com for more options
before:
hooks:
- go mod tidy
builds:
- id: notation-cose
dir: cmd/notation-cose
binary: notation-cose
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s -w -X {{.ModulePath}}/internal/version.Version={{.Version}} -X {{.ModulePath}}/internal/version.BuildMetadata={{.FullCommit}}
release:
prerelease: auto
draft: true
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: '{{ incpatch .Version }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit aa8fada

Please sign in to comment.