From 4ab3dca7db7a96ba8074d091feea10c7277e775d Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 21 Nov 2024 22:08:47 +0100 Subject: [PATCH] dev: publish AUR -bin automatically (#5146) --- .goreleaser.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 43e60937c912..fd21c95d429e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -134,6 +134,35 @@ chocolateys: skip_publish: false goamd64: v1 +aurs: + - description: Fast linters runner for Go. + skip_upload: false + homepage: https://golangci.com + provides: + - "golangci-lint" + maintainers: + - "Fernandez Ludovic " + license: GPL-3.0 + private_key: "{{ .Env.AUR_KEY }}" + git_url: "ssh://aur@aur.archlinux.org/golangci-lint-bin.git" + commit_author: + name: golangci-releaser + email: 65486276+golangci-releaser@users.noreply.github.com + package: |- + # bin + install -Dm755 "./golangci-lint" "${pkgdir}/usr/bin/golangci-lint" + + # license + install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/golangci-lint/LICENSE" + + # completions + mkdir -p "${pkgdir}/usr/share/bash-completion/completions/" + mkdir -p "${pkgdir}/usr/share/zsh/site-functions/" + mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/" + ./golangci-lint completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/golangci-lint" + ./golangci-lint completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_golangci-lint" + ./golangci-lint completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/golangci-lint.fish" + nfpms: - id: golangci-lint-nfpms