Skip to content

Commit bc3d877

Browse files
authored
dev: publish snap (#5130)
1 parent 59f6a2e commit bc3d877

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/tag.yml

+1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ jobs:
6969
env:
7070
AUR_KEY: ${{ secrets.AUR_KEY }}
7171
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
72+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
7273
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}

.goreleaser.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ chocolateys:
127127
summary: Fast linters Runner for Go
128128
description: |
129129
{{ .ProjectName }} installer package.
130-
Fast linters Runner for Go .
130+
Fast linters Runner for Go.
131131
release_notes: "https://github.com/golangci/golangci-lint/releases/tag/v{{ .Version }}"
132132
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
133133
source_repo: "https://push.chocolatey.org/"
@@ -163,6 +163,18 @@ aurs:
163163
./golangci-lint completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_golangci-lint"
164164
./golangci-lint completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/golangci-lint.fish"
165165
166+
snapcrafts:
167+
- name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
168+
grade: stable
169+
confinement: classic
170+
license: GPL-3.0
171+
base: core22
172+
summary: Fast linters runner for Go.
173+
description: |
174+
It runs linters in parallel, uses caching, supports YAML configuration, integrates with all major IDEs, and includes over a hundred linters.
175+
disable: false
176+
publish: true
177+
166178
nfpms:
167179
-
168180
id: golangci-lint-nfpms

0 commit comments

Comments
 (0)