86 lines
2.2 KiB
YAML
86 lines
2.2 KiB
YAML
# GoReleaser configuration
|
|
# https://goreleaser.com
|
|
version: 2
|
|
|
|
project_name: RocketLeagueBot-Renderer
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: renderer
|
|
main: .
|
|
binary: RocketLeagueBot-Renderer
|
|
# Pure-Go build (WASM SQLite, no cgo) — fully static, cross-compiles cleanly.
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm64
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
|
|
|
|
archives:
|
|
- id: default
|
|
formats: [tar.gz]
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|
|
name_template: >-
|
|
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
|
|
files:
|
|
- README.md
|
|
# Raw, per-platform binaries. `uploads` with mode: binary only has artifacts
|
|
# to send when an archive uses format: binary — without this it uploads
|
|
# nothing but checksums.txt. The name_template gives each binary a unique
|
|
# filename so they can all share one package version on the Gitea registry.
|
|
- id: binary
|
|
formats: [binary]
|
|
name_template: >-
|
|
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
snapshot:
|
|
version_template: "{{ incpatch .Version }}-snapshot-{{ .ShortCommit }}"
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore:"
|
|
- "Merge pull request"
|
|
- "Merge branch"
|
|
|
|
# Publish releases to the Gitea instance.
|
|
gitea_urls:
|
|
api: https://git.destefano.cloud/api/v1
|
|
download: https://git.destefano.cloud
|
|
|
|
release:
|
|
gitea:
|
|
owner: texasmade
|
|
name: RocketLeagueBot-Renderer
|
|
|
|
uploads:
|
|
- name: gitea-package-registry
|
|
# Raw binaries (uniquely named per platform) plus checksums.txt, all under a
|
|
# single version: the standard Gitea generic layout .../{package}/{version}/{filename}
|
|
mode: binary
|
|
target: "https://git.destefano.cloud/api/packages/texasmade/generic/RocketLeagueBot-Renderer/v{{ .Version }}"
|
|
username: "fdestefano"
|
|
password: "{{ .Env.GITEA_SECRET }}"
|
|
checksum: true # adds checksum header to the request |