90 lines
1.8 KiB
YAML
90 lines
1.8 KiB
YAML
project_name: bitxhub
|
|
env:
|
|
- GO111MODULE=on
|
|
release:
|
|
github:
|
|
owner: meshplus
|
|
name: bitxhub
|
|
draft: true
|
|
prerelease: auto
|
|
name_template: Release {{.Tag}}
|
|
milestones:
|
|
- repo:
|
|
owner: meshplus
|
|
name: bitxhub
|
|
name_template: '{{ .Tag }}'
|
|
scoop:
|
|
name: bitxhub
|
|
commit_author:
|
|
name: goreleaserbot
|
|
email: goreleaser@carlosbecker.com
|
|
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
|
|
builds:
|
|
- id: bitxhub
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- "386"
|
|
goarm:
|
|
- "6"
|
|
targets:
|
|
- linux_amd64
|
|
- linux_arm64
|
|
- linux_386
|
|
- darwin_amd64
|
|
dir: .
|
|
main: ./cmd/bitxhub
|
|
ldflags:
|
|
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
|
|
-X main.builtBy=goreleaser
|
|
binary: bitxhub
|
|
lang: go
|
|
skip: true
|
|
gobinary: go
|
|
archives:
|
|
- id: bitxhub-archive
|
|
builds:
|
|
- bitxhub
|
|
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
|
|
.Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
|
|
format: binary
|
|
files:
|
|
- licence*
|
|
- LICENCE*
|
|
- license*
|
|
- LICENSE*
|
|
- readme*
|
|
- README*
|
|
- changelog*
|
|
- CHANGELOG*
|
|
allow_different_binary_count: false
|
|
snapshot:
|
|
name_template: '{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}'
|
|
checksum:
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
|
|
algorithm: sha256
|
|
changelog:
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|
|
sort: asc
|
|
dist: dist
|
|
env_files:
|
|
github_token: ~/.config/goreleaser/github_token
|
|
gitlab_token: ~/.config/goreleaser/gitlab_token
|
|
gitea_token: ~/.config/goreleaser/gitea_token
|
|
before:
|
|
hooks:
|
|
- make release-binary
|
|
source:
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}'
|
|
format: tar.gz
|
|
github_urls:
|
|
download: https://github.com
|
|
gitlab_urls:
|
|
download: https://gitlab.com
|