Skip to content

Commit

Permalink
Used Winget token to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Jun 11, 2024
1 parent 2399412 commit 0e30944
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
Expand Down Expand Up @@ -119,12 +120,13 @@ winget:
repository:
owner: overmindtech
name: winget-pkgs
branch: "overmind-{{ .Version }}"

# Optionally a token can be provided, if it differs from the token
# provided to GoReleaser
#
# Templates: allowed
# token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"
token: "{{ .Env.WINGET_TOKEN }}"

# Sets up pull request creation instead of just pushing to the given branch.
# Make sure the 'branch' property is different from base before enabling
Expand All @@ -138,10 +140,10 @@ winget:
# above will be used as HEAD, allowing cross-repository pull requests.
#
# Since: v1.19
# base:
# owner: goreleaser
# name: my-repo
# branch: main
base:
owner: microsoft
name: winget-pkgs
branch: master

checksum:
name_template: "checksums.txt"
Expand Down

0 comments on commit 0e30944

Please sign in to comment.