mirror of
https://github.com/go-eagle/eagle.git
synced 2025-09-26 20:41:26 +08:00
chore: modify build and other section format
This commit is contained in:
@@ -1,26 +1,31 @@
|
||||
# see: https://goreleaser.com/customization/
|
||||
|
||||
project_name: snake
|
||||
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod download
|
||||
#builds:
|
||||
# - main: .
|
||||
# binary: snake
|
||||
# goos:
|
||||
# - linux
|
||||
# - darwin
|
||||
# - windows
|
||||
# # amd64 (64-bit x86)
|
||||
# # 386 (32-bit x86)
|
||||
# goarch:
|
||||
# - amd64
|
||||
# - 386
|
||||
# goarm:
|
||||
# - "6"
|
||||
# ldflags: -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}}
|
||||
|
||||
builds:
|
||||
- main: ./mian.go
|
||||
binary: snake
|
||||
ldflags: -s -w -X main.Version={{.Version}} -X main.BuildDate={{.Date}} -X main.commit={{.Commit}}
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
ignore:
|
||||
- goos: windows
|
||||
goarch: arm64
|
||||
- goos: darwin
|
||||
goarch: arm64
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
@@ -29,24 +34,19 @@ changelog:
|
||||
- '^test:'
|
||||
- Merge pull request
|
||||
- Merge branch
|
||||
|
||||
archives:
|
||||
-
|
||||
# Defaults to `default`.
|
||||
id: snake
|
||||
- id: snake
|
||||
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
||||
format: tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
files:
|
||||
- licence*
|
||||
- LICENCE*
|
||||
- license*
|
||||
- LICENSE*
|
||||
- readme*
|
||||
- README*
|
||||
- changelog*
|
||||
- CHANGELOG*
|
||||
|
||||
release:
|
||||
github:
|
||||
owner: qloog
|
||||
|
Reference in New Issue
Block a user