Skip to content

Commit

Permalink
Add support for publishing minder to winget (Windows) (#1333)
Browse files Browse the repository at this point in the history
* add winget support for goreleaser

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

* add WINGET_GITHUB_TOKEN for goreleaser

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

* disable opening pull request until we release

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

---------

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
  • Loading branch information
rdimitrov authored Oct 31, 2023
1 parent 20dfa79 commit 131969c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
WINGET_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
VERSION: ${{ needs.ldflags_args.outputs.version }}
COMMIT: ${{ needs.ldflags_args.outputs.commit }}
COMMIT_DATE: ${{ needs.ldflags_args.outputs.commit-date }}
Expand Down
33 changes: 33 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,39 @@ brews:
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
test: |
system "#{bin}/minder --help"
# This section defines how to release to winget.
winget:
- name: minder
publisher: stacklok
license: Apache-2.0
license_url: "https://github.com/stacklok/mediator/blob/main/LICENSE"
copyright: Stacklok, Inc.
homepage: https://stacklok.com
short_description: 'minder is the client CLI for interacting with Minder by Stacklok.'
publisher_support_url: "https://github.com/stacklok/mediator/issues/new/choose"
package_identifier: "stacklok.minder"
url_template: "https://github.com/stacklok/mediator/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
skip_upload: auto
release_notes: "{{.Changelog}}"
tags:
- golang
- cli
commit_author:
name: stacklokbot
email: contact@stacklok.com
goamd64: v1
repository:
owner: stacklok
name: winget-pkgs
branch: "minder-{{.Version}}"
token: "{{ .Env.WINGET_GITHUB_TOKEN }}"
pull_request:
enabled: false # TODO: enable once we release
draft: false
base:
owner: microsoft
name: winget-pkgs
branch: master
# This section defines whether we want to release the source code too.
source:
enabled: true
Expand Down

0 comments on commit 131969c

Please sign in to comment.