version: 2 project_name: snitch before: hooks: - go mod tidy builds: - id: linux env: - CGO_ENABLED=0 goos: - linux goarch: - amd64 - arm64 - arm goarm: - "7" ldflags: - -s -w - -X snitch/cmd.Version={{.Version}} - -X snitch/cmd.Commit={{.ShortCommit}} - -X snitch/cmd.Date={{.Date}} archives: - formats: - tar.gz name_template: >- {{ .ProjectName }}_ {{- .Version }}_ {{- .Os }}_ {{- .Arch }} {{- if .Arm }}v{{ .Arm }}{{ end }} files: - LICENSE - README.md checksum: name_template: "checksums.txt" changelog: sort: asc filters: exclude: - "^docs:" - "^test:" - "^ci:" - "^chore:" - Merge pull request - Merge branch nfpms: - id: packages package_name: snitch vendor: karol broda homepage: https://github.com/karol-broda/snitch maintainer: karol broda description: a friendlier ss/netstat for humans license: MIT formats: - deb - rpm - apk aurs: - name: snitch-bin homepage: https://github.com/karol-broda/snitch description: a friendlier ss/netstat for humans maintainers: - "Karol Broda " license: MIT private_key: "{{ .Env.AUR_KEY }}" git_url: "ssh://aur@aur.archlinux.org/snitch-bin.git" depends: - glibc provides: - snitch conflicts: - snitch package: |- install -Dm755 "./snitch" "${pkgdir}/usr/bin/snitch" install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/snitch/LICENSE" commit_msg_template: "Update to {{ .Tag }}" skip_upload: auto release: github: owner: karol-broda name: snitch draft: false prerelease: auto