diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ca9e23e..f40bb67 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,6 +27,7 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + AUR_KEY: ${{ secrets.AUR_KEY }} release-darwin: needs: release-linux diff --git a/.goreleaser-darwin.yaml b/.goreleaser-darwin.yaml index 3915945..d3abc03 100644 --- a/.goreleaser-darwin.yaml +++ b/.goreleaser-darwin.yaml @@ -25,6 +25,9 @@ archives: {{- .Version }}_ {{- .Os }}_ {{- .Arch }} + files: + - LICENSE + - README.md release: github: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 22b6eb7..f9b6f6d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -33,6 +33,9 @@ archives: {{- .Os }}_ {{- .Arch }} {{- if .Arm }}v{{ .Arm }}{{ end }} + files: + - LICENSE + - README.md checksum: name_template: "checksums.txt" @@ -61,6 +64,27 @@ nfpms: - 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 diff --git a/README.md b/README.md index 9e1e225..f622670 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,16 @@ nix profile install github:karol-broda/snitch # then use: inputs.snitch.packages.${system}.default ``` +### arch linux (aur) + +```bash +# with yay +yay -S snitch-bin + +# with paru +paru -S snitch-bin +``` + ### binary download from [releases](https://github.com/karol-broda/snitch/releases):