Retarget GoReleaser to publish to Gitea (gitea_urls, release.gitea, changelog.use: gitea). Add Gitea Actions workflows for build/test, release, and benchmarks — adapted from GitHub equivalents with macOS jobs and SLSA provenance dropped. Old .github/workflows/ kept in place.
89 lines
1.8 KiB
YAML
89 lines
1.8 KiB
YAML
version: 2
|
|
|
|
gitea_urls:
|
|
api: https://gitea.app.monadical.io/api/v1
|
|
download: https://gitea.app.monadical.io
|
|
skip_tls_verify: false
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -s -w
|
|
- -X main.version={{.Version}}
|
|
- -X main.buildTime={{.Date}}
|
|
- -X main.gitCommit={{.Commit}}
|
|
binary: greywall
|
|
main: ./cmd/greywall
|
|
|
|
archives:
|
|
- formats: [tar.gz]
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- .Version }}_
|
|
{{- title .Os }}_
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
files:
|
|
- README.md
|
|
- LICENSE
|
|
- ARCHITECTURE.md
|
|
- CONTRIBUTING.md
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
|
|
changelog:
|
|
sort: asc
|
|
use: gitea
|
|
format: "{{ .SHA }}: {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}"
|
|
filters:
|
|
exclude:
|
|
- "^test:"
|
|
- "^test\\("
|
|
- "^chore: update$"
|
|
- "^chore: docs$"
|
|
- "^docs: update$"
|
|
- "^chore: typo$"
|
|
- "^chore\\(deps\\): "
|
|
- "^(build|ci): "
|
|
- "merge conflict"
|
|
- Merge pull request
|
|
- Merge remote-tracking branch
|
|
- Merge branch
|
|
- go mod tidy
|
|
groups:
|
|
- title: "New Features"
|
|
regexp: '^.*?feat(\(.+\))??!?:.+$'
|
|
order: 100
|
|
- title: "Security updates"
|
|
regexp: '^.*?sec(\(.+\))??!?:.+$'
|
|
order: 150
|
|
- title: "Bug fixes"
|
|
regexp: '^.*?(fix|refactor)(\(.+\))??!?:.+$'
|
|
order: 200
|
|
- title: "Documentation updates"
|
|
regexp: ^.*?docs?(\(.+\))??!?:.+$
|
|
order: 400
|
|
- title: Other work
|
|
order: 9999
|
|
|
|
release:
|
|
gitea:
|
|
owner: monadical
|
|
name: greywall
|
|
draft: false
|
|
prerelease: auto
|