mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-11 06:56:59 +08:00
76 lines
2.2 KiB
YAML
76 lines
2.2 KiB
YAML
#gomod:
|
|
# # Proxy a module from proxy.golang.org, making the builds verifiable.
|
|
# # This will only be effective if running against a tag. Snapshots will ignore this setting.
|
|
# # Notice: for this to work your `build.main` must be a package, not a `.go` file.
|
|
# #
|
|
# # Default is false.
|
|
# proxy: true
|
|
#
|
|
# # If proxy is true, use these environment variables when running `go mod` commands (namely, `go mod tidy`).
|
|
# # Defaults to `os.Environ()`.
|
|
# env:
|
|
# - GOPROXY=https://goproxy.cn
|
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
# Make sure to check the documentation at https://goreleaser.com
|
|
|
|
before:
|
|
hooks:
|
|
- make clean
|
|
# You may remove this if you don't use go modules.
|
|
- go mod tidy
|
|
# you may remove this if you don't need go generate
|
|
- go generate ./...
|
|
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
|
|
archives:
|
|
- format: tar.gz
|
|
# this name template makes the OS and Arch compatible with the results of uname.
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- title .Os }}_
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
# use zip for windows archives
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
snapshot:
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|
|
|
|
# The lines beneath this are called `modelines`. See `:help modeline`
|
|
# Feel free to remove those if you don't want/use them.
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
|
|
|
# Default: './dist'
|
|
dist: _output/dist
|
|
|
|
git:
|
|
# What should be used to sort tags when gathering the current and previous
|
|
# tags if there are more than one tag in the same commit.
|
|
#
|
|
# Default: '-version:refname'
|
|
tag_sort: -version:creatordate
|
|
|
|
# What should be used to specify prerelease suffix while sorting tags when gathering
|
|
# the current and previous tags if there are more than one tag in the same commit.
|
|
#
|
|
# Since: v1.17
|
|
prerelease_suffix: "-" |