Skip to content

Commit 999c182

Browse files
committed
dev: publish snap
1 parent 5d5f373 commit 999c182

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
@@ -68,4 +68,5 @@ jobs:
6868
args: release --clean --timeout=90m
6969
env:
7070
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
71+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
7172
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}

.goreleaser.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,25 @@ 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/"
134134
skip_publish: false
135135
goamd64: v1
136136

137+
snapcrafts:
138+
- name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
139+
grade: stable
140+
confinement: classic
141+
license: GPL-3.0
142+
base: core22
143+
summary: Fast linters runner for Go.
144+
description: |
145+
It runs linters in parallel, uses caching, supports YAML configuration, integrates with all major IDEs, and includes over a hundred linters.
146+
disable: false
147+
publish: true
148+
137149
nfpms:
138150
-
139151
id: golangci-lint-nfpms

0 commit comments

Comments
 (0)