chore: modify build and other section format

This commit is contained in:
qloog
2021-05-14 10:24:17 +08:00
parent fd8b843485
commit 531731f74d

View File

@@ -1,26 +1,31 @@
# see: https://goreleaser.com/customization/ # see: https://goreleaser.com/customization/
project_name: snake project_name: snake
env: env:
- GO111MODULE=on - GO111MODULE=on
before: before:
hooks: hooks:
- go mod download - go mod download
#builds:
# - main: . builds:
# binary: snake - main: ./mian.go
# goos: binary: snake
# - linux ldflags: -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}} -X main.commit={{.Commit}}
# - darwin goos:
# - windows - linux
# # amd64 (64-bit x86) - darwin
# # 386 (32-bit x86) - windows
# goarch: goarch:
# - amd64 - amd64
# - 386 - arm64
# goarm: ignore:
# - "6" - goos: windows
# ldflags: -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}} goarch: arm64
- goos: darwin
goarch: arm64
changelog: changelog:
sort: asc sort: asc
filters: filters:
@@ -29,24 +34,19 @@ changelog:
- '^test:' - '^test:'
- Merge pull request - Merge pull request
- Merge branch - Merge branch
archives: archives:
- - id: snake
# Defaults to `default`.
id: snake
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz format: tar.gz
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
files: files:
- licence*
- LICENCE*
- license*
- LICENSE* - LICENSE*
- readme*
- README* - README*
- changelog*
- CHANGELOG* - CHANGELOG*
release: release:
github: github:
owner: qloog owner: qloog