version: 2 # Releases are published on the ermite forge through its GitHub-compatible API. # In CI the runner sets GITHUB_API_URL and GITHUB_SERVER_URL to the address the # job can reach; the public URLs are the fallback for a local run. github_urls: api: '{{ or (index .Env "GITHUB_API_URL") "https://git.bnema.dev/-/github/api" }}/' upload: '{{ or (index .Env "GITHUB_API_URL") "https://git.bnema.dev/-/github/api" }}/uploads/' download: '{{ or (index .Env "GITHUB_SERVER_URL") "https://git.bnema.dev" }}/' release: github: owner: bnema name: hexcheck draft: true prerelease: auto builds: - id: hexcheck main: ./cmd/hexcheck binary: hexcheck goos: [linux, darwin, windows] goarch: [amd64, arm64] env: - CGO_ENABLED=0 ldflags: - -s -w -X main.version={{.Version}} archives: - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" formats: [tar.gz] format_overrides: - goos: windows formats: [zip] checksum: name_template: checksums.txt changelog: sort: asc filters: exclude: - "^docs" - "^test" - "^chore"