# 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 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 # Upload each built binary to the Gitea generic package registry. The os/arch # is encoded in the version segment, e.g. # /api/packages/texasmade/generic/RocketLeagueBot-Renderer/1.0.0_darwin_amd64/RocketLeagueBot-Renderer uploads: - name: gitea method: PUT mode: binary target: https://git.destefano.cloud/api/packages/fdestefano/generic/{{ .ProjectName }}/{{ .Version }}_{{ .Os }}_{{ .Arch }}/{{ .ArtifactName }} username: texasmade # Password/token comes from the env var {NAME}_SECRET -> GITEA_SECRET. custom_headers: Content-Type: application/octet-stream