92 lines
1.7 KiB
YAML
92 lines
1.7 KiB
YAML
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||
|
|
version: 2
|
||
|
|
|
||
|
|
project_name: fgj
|
||
|
|
|
||
|
|
before:
|
||
|
|
hooks:
|
||
|
|
- go mod tidy
|
||
|
|
|
||
|
|
builds:
|
||
|
|
- id: fgj
|
||
|
|
binary: fgj
|
||
|
|
main: .
|
||
|
|
env:
|
||
|
|
- CGO_ENABLED=0
|
||
|
|
flags:
|
||
|
|
- -trimpath
|
||
|
|
ldflags:
|
||
|
|
- -s -w -X "forgejo.zerova.net/public/fgj-sid/cmd.version={{ .Version }}"
|
||
|
|
goos:
|
||
|
|
- linux
|
||
|
|
- darwin
|
||
|
|
- windows
|
||
|
|
- freebsd
|
||
|
|
goarch:
|
||
|
|
- amd64
|
||
|
|
- arm64
|
||
|
|
- arm
|
||
|
|
goarm:
|
||
|
|
- "6"
|
||
|
|
- "7"
|
||
|
|
ignore:
|
||
|
|
- goos: darwin
|
||
|
|
goarch: arm
|
||
|
|
- goos: windows
|
||
|
|
goarch: arm
|
||
|
|
- goos: freebsd
|
||
|
|
goarch: arm
|
||
|
|
|
||
|
|
archives:
|
||
|
|
- id: default
|
||
|
|
name_template: >-
|
||
|
|
{{ .ProjectName }}-
|
||
|
|
{{- .Version }}-
|
||
|
|
{{- .Os }}-
|
||
|
|
{{- if eq .Arch "amd64" }}x86_64
|
||
|
|
{{- else if eq .Arch "386" }}i386
|
||
|
|
{{- else }}{{ .Arch }}{{ end }}
|
||
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||
|
|
formats: [tar.gz]
|
||
|
|
format_overrides:
|
||
|
|
- goos: windows
|
||
|
|
formats: [zip]
|
||
|
|
files:
|
||
|
|
- README.md
|
||
|
|
- LICENSE
|
||
|
|
- CHANGELOG.md
|
||
|
|
|
||
|
|
checksum:
|
||
|
|
name_template: "checksums.txt"
|
||
|
|
algorithm: sha256
|
||
|
|
|
||
|
|
snapshot:
|
||
|
|
version_template: "{{ incpatch .Version }}-next"
|
||
|
|
|
||
|
|
changelog:
|
||
|
|
sort: asc
|
||
|
|
use: git
|
||
|
|
filters:
|
||
|
|
exclude:
|
||
|
|
- "^docs:"
|
||
|
|
- "^test:"
|
||
|
|
- "^chore:"
|
||
|
|
- "^ci:"
|
||
|
|
- "Merge pull request"
|
||
|
|
- "Merge branch"
|
||
|
|
|
||
|
|
gitea_urls:
|
||
|
|
api: https://forgejo.zerova.net/api/v1
|
||
|
|
download: https://forgejo.zerova.net
|
||
|
|
|
||
|
|
release:
|
||
|
|
draft: false
|
||
|
|
prerelease: auto
|
||
|
|
mode: replace
|
||
|
|
header: |
|
||
|
|
## fgj {{ .Tag }}
|
||
|
|
|
||
|
|
Install with `go install forgejo.zerova.net/public/fgj-sid@{{ .Tag }}` or download a prebuilt binary below.
|
||
|
|
footer: |
|
||
|
|
**Full Changelog**: https://forgejo.zerova.net/public/fgj-sid/compare/{{ .PreviousTag }}...{{ .Tag }}
|