Skip to content

Commit 5c2c5ef

Browse files
committed
Add Winget automation to GoReleaser
1 parent 8d948c1 commit 5c2c5ef

File tree

1 file changed

+118
-0
lines changed

1 file changed

+118
-0
lines changed

.goreleaser.yml

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,124 @@ release:
235235
# - glob: ./glob/**/to/**/file/**/*
236236
# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
237237

238+
winget:
239+
-
240+
# IDs of the archives to use.
241+
# Empty means all IDs.
242+
ids: [ default ]
243+
244+
#
245+
# Default: ProjectName
246+
# Templates: allowed
247+
name: step
248+
249+
# Publisher name.
250+
#
251+
# Templates: allowed
252+
# Required.
253+
publisher: Smallstep
254+
255+
# Your app's description.
256+
#
257+
# Templates: allowed
258+
# Required.
259+
short_description: "A Swiss army knife for working with X.509 certificates, JWTs, etc."
260+
261+
# License name.
262+
#
263+
# Templates: allowed
264+
# Required.
265+
license: "Apache-2.0"
266+
267+
# Publisher URL.
268+
#
269+
# Templates: allowed
270+
publisher_url: "https://smallstep.com"
271+
272+
# Publisher support URL.
273+
#
274+
# Templates: allowed
275+
publisher_support_url: "https://github.com/smallstep/certificates/discussions"
276+
277+
# URL which is determined by the given Token (github, gitlab or gitea).
278+
#
279+
# Default depends on the client.
280+
# Templates: allowed
281+
url_template: "https://github.com/smallstep/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
282+
283+
# Git author used to commit to the repository.
284+
commit_author:
285+
name: goreleaserbot
286+
287+
288+
# The project name and current git tag are used in the format string.
289+
#
290+
# Templates: allowed
291+
commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}"
292+
293+
# Your app's homepage.
294+
homepage: "https://github.com/smallstep/cli"
295+
296+
# Your app's long description.
297+
#
298+
# Templates: allowed
299+
description: ""
300+
301+
# License URL.
302+
#
303+
# Templates: allowed
304+
license_url: "https://github.com/smallstep/cli/blob/master/LICENSE"
305+
306+
# Release notes URL.
307+
#
308+
# Templates: allowed
309+
release_notes_url: "https://github.com/smallstep/cli/releases/tag/{{.Version}}"
310+
311+
# Tags.
312+
tags:
313+
- cli
314+
- smallstep
315+
316+
# Repository to push the generated files to.
317+
repository:
318+
owner: smallstep
319+
name: winget-pkgs
320+
321+
# Optionally a branch can be provided.
322+
#
323+
# Default: default repository branch
324+
# Templates: allowed
325+
#branch: main
326+
327+
# Optionally a token can be provided, if it differs from the token
328+
# provided to GoReleaser
329+
# Templates: allowed
330+
#token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"
331+
332+
# Sets up pull request creation instead of just pushing to the given branch.
333+
# Make sure the 'branch' property is different from base before enabling
334+
# it.
335+
#
336+
# Since: v1.17
337+
pull_request:
338+
# Whether to enable it or not.
339+
enabled: true
340+
341+
# Whether to open the PR as a draft or not.
342+
#
343+
# Default: false
344+
# Since: v1.19
345+
draft: true
346+
347+
# Base can also be another repository, in which case the owner and name
348+
# above will be used as HEAD, allowing cross-repository pull requests.
349+
#
350+
# Since: v1.19
351+
base:
352+
owner: microsoft
353+
name: winget-pkgs
354+
branch: main
355+
238356
scoops:
239357
-
240358
ids: [ default ]

0 commit comments

Comments
 (0)