chore: Set up goreleaser to build and release binaries.
This commit is contained in:
1 parent
36af437794
commit
5c6bcd72d6
4 files changed
+74
No files matched your search
@@ -0,0 +1,47 @@
|
||||
version: 2
|
||||
|
||||
gitea_urls:
|
||||
api: https://git.handmadecities.com/api/v1
|
||||
download: https://git.handmadecities.com/
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
|
||||
builds:
|
||||
- id: hmpki
|
||||
main: ./cmd/hmpki
|
||||
binary: hmpki
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
- darwin
|
||||
goarch:
|
||||
- arm64
|
||||
- amd64
|
||||
- id: hmsecrets
|
||||
main: ./cmd/hmsecrets
|
||||
binary: hmsecrets
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
- darwin
|
||||
goarch:
|
||||
- arm64
|
||||
- amd64
|
||||
|
||||
archives:
|
||||
- formats: [tar.gz]
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_
|
||||
{{- title .Os }}_
|
||||
{{- if eq .Arch "amd64" }}x86_64
|
||||
{{- else }}{{ .Arch }}{{ end }}
|
||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
formats: [zip]
|
||||
Reference in new issue
Block a user