Skip to content

Commit 179bb4f

Browse files
authored
Enable winget publishing for toolhive (#675)
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent ff80d8e commit 179bb4f

File tree

2 files changed

+38
-33
lines changed

2 files changed

+38
-33
lines changed

.github/workflows/releaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
args: release --clean
8686
env:
8787
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88-
# WINGET_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }} # we don't need this for now
88+
WINGET_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
8989
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
9090
VERSION: ${{ needs.ldflags_args.outputs.version }}
9191
COMMIT: ${{ needs.ldflags_args.outputs.commit }}

.goreleaser.yaml

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,43 @@ archives:
3131
- goos: windows
3232
format: zip
3333
# This section defines how to release to winget.
34-
# winget:
35-
# - name: toolhive
36-
# publisher: stacklok
37-
# license: Apache-2.0
38-
# license_url: "https://github.com/stacklok/toolhive/blob/main/LICENSE"
39-
# copyright: Stacklok, Inc.
40-
# homepage: https://stacklok.com
41-
# short_description: 'ToolHive is a lightweight, secure, and fast manager for MCP (Model Context Protocol) servers'
42-
# publisher_support_url: "https://github.com/stacklok/toolhive/issues/new/choose"
43-
# package_identifier: "stacklok.toolhive"
44-
# url_template: "https://github.com/stacklok/toolhive/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
45-
# skip_upload: auto
46-
# release_notes: "{{.Changelog}}"
47-
# tags:
48-
# - golang
49-
# - cli
50-
# commit_author:
51-
# name: stacklokbot
52-
53-
# goamd64: v1
54-
# repository:
55-
# owner: stacklok
56-
# name: winget-pkgs
57-
# branch: "toolhive-{{.Version}}"
58-
# token: "{{ .Env.WINGET_GITHUB_TOKEN }}"
59-
# pull_request:
60-
# enabled: true
61-
# draft: false
62-
# base:
63-
# owner: microsoft
64-
# name: winget-pkgs
65-
# branch: master
34+
winget:
35+
- name: toolhive
36+
publisher: stacklok
37+
license: Apache-2.0
38+
license_url: "https://github.com/stacklok/toolhive/blob/main/LICENSE"
39+
copyright: Stacklok, Inc.
40+
homepage: https://stacklok.com
41+
short_description: 'ToolHive is a lightweight, secure, and fast manager for MCP (Model Context Protocol) servers'
42+
publisher_support_url: "https://github.com/stacklok/toolhive/issues/new/choose"
43+
package_identifier: "stacklok.toolhive"
44+
url_template: "https://github.com/stacklok/toolhive/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
45+
skip_upload: auto
46+
release_notes: "{{.Changelog}}"
47+
tags:
48+
- golang
49+
- cli
50+
- mcp
51+
- toolhive
52+
- stacklok
53+
- model-context-protocol
54+
- mcp-server
55+
commit_author:
56+
name: stacklokbot
57+
58+
goamd64: v1
59+
repository:
60+
owner: stacklok
61+
name: winget-pkgs
62+
branch: "toolhive-{{.Version}}"
63+
token: "{{ .Env.WINGET_GITHUB_TOKEN }}"
64+
pull_request:
65+
enabled: true
66+
draft: false
67+
base:
68+
owner: microsoft
69+
name: winget-pkgs
70+
branch: master
6671
# This section defines how to release to homebrew.
6772
brews:
6873
- name: thv

0 commit comments

Comments
 (0)