version: 2 before: hooks: - go mod download - go generate ./cmd/... builds: - id: default env: - CGO_ENABLED=0 goos: - linux - windows - darwin main: ./cmd/carapace binary: carapace tags: - release - id: termux env: - CGO_ENABLED=1 goos: - android goarch: - amd64 - arm64 - arm - "386" main: ./cmd/carapace binary: carapace tags: - release tool: go-termux archives: - id: default ids: - default name_template: 'carapace-bin_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' format_overrides: - goos: windows formats: ['zip'] - id: termux ids: - termux name_template: 'carapace-bin_{{ .Version }}_termux_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' brews: - name: carapace description: "multi-shell multi-command argument completer" homepage: "https://github.com/carapace-sh/carapace-bin" license: "MIT" repository: owner: rsteube name: homebrew-tap token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}" commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" scoops: - description: "multi-shell multi-command argument completer" homepage: "https://github.com/carapace-sh/carapace-bin" license: "MIT" repository: owner: rsteube name: scoop-bucket token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}" commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" aurs: - description: "multi-shell multi-command argument completer" homepage: "https://github.com/carapace-sh/carapace-bin" license: "MIT" maintainers: - rsteube private_key: '{{ .Env.AUR_KEY }}' git_url: 'ssh://aur@aur.archlinux.org/carapace-bin.git' provides: - carapace conflicts: - carapace nfpms: - description: "multi-shell multi-command argument completer" homepage: "https://github.com/carapace-sh/carapace-bin" license: "MIT" maintainer: rsteube formats: - apk - deb - rpm - termux.deb publishers: - name: fury cmd: "bash -c \"[[ {{.ArtifactPath}} =~ ^.*_(386|amd64|arm64).(deb|rpm)$ ]] && curl -F package=@{{abs .ArtifactPath}} https://$FURY_TOKEN@push.fury.io/rsteube/ || true\"" env: - FURY_TOKEN={{ .Env.FURY_TOKEN }}