From bc3d877240f44b90ab1a478f1f76c1c93d0cfb2d Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 25 Nov 2024 14:29:01 +0100 Subject: [PATCH] dev: publish snap (#5130) --- .github/workflows/tag.yml | 1 + .goreleaser.yml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 844938cad806..e76437400b48 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -69,4 +69,5 @@ jobs: env: AUR_KEY: ${{ secrets.AUR_KEY }} CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }} + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index fd21c95d429e..0280c0b9e6b8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -127,7 +127,7 @@ chocolateys: summary: Fast linters Runner for Go description: | {{ .ProjectName }} installer package. - Fast linters Runner for Go . + Fast linters Runner for Go. release_notes: "https://github.com/golangci/golangci-lint/releases/tag/v{{ .Version }}" api_key: "{{ .Env.CHOCOLATEY_API_KEY }}" source_repo: "https://push.chocolatey.org/" @@ -163,6 +163,18 @@ aurs: ./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" +snapcrafts: + - name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + grade: stable + confinement: classic + license: GPL-3.0 + base: core22 + summary: Fast linters runner for Go. + description: | + It runs linters in parallel, uses caching, supports YAML configuration, integrates with all major IDEs, and includes over a hundred linters. + disable: false + publish: true + nfpms: - id: golangci-lint-nfpms