Skip to content

Commit ba6cf11

Browse files
authored
feat: add WinGet (Windows Package Manager) support to release pipeline (#45)
- Add winget publisher config to .goreleaser.yml (identifier: timvw.wt) - Pass WINGET_TOKEN secret to GoReleaser in release workflow - Add WinGet installation instructions to README - Update CONTRIBUTING.md release docs to list all 5 distribution channels
1 parent af21e46 commit ba6cf11

4 files changed

Lines changed: 40 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ jobs:
4949
HOMEBREW_TAP_TOKEN: ${{ steps.generate-token.outputs.token || github.token }}
5050
SCOOP_BUCKET_TOKEN: ${{ steps.generate-token.outputs.token || github.token }}
5151
AUR_KEY: ${{ secrets.AUR_KEY }}
52+
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}

.goreleaser.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,31 @@ scoops:
104104
description: A fast, simple Git worktree helper
105105
license: MIT
106106

107+
# WinGet package (Windows Package Manager)
108+
winget:
109+
- name: wt
110+
publisher: timvw
111+
publisher_url: https://timvw.be
112+
publisher_support_url: https://github.com/timvw/wt/issues
113+
package_url: https://github.com/timvw/wt
114+
short_description: "A fast, simple Git worktree helper"
115+
description: |
116+
wt is a fast, simple Git worktree helper written in Go.
117+
It wraps Git's native worktree commands with a convenient interface,
118+
organized directory structure, and shell integration with auto-cd.
119+
license: MIT
120+
license_url: https://github.com/timvw/wt/blob/main/LICENSE
121+
tags:
122+
- git
123+
- worktree
124+
- cli
125+
- developer-tools
126+
release_notes_url: "https://github.com/timvw/wt/releases/tag/{{.Tag}}"
127+
repository:
128+
owner: microsoft
129+
name: winget-pkgs
130+
token: "{{ .Env.WINGET_TOKEN }}"
131+
107132
# AUR package
108133
aurs:
109134
- name: wt-bin

CONTRIBUTING.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,13 @@ Every push triggers:
127127
git push origin v0.1.x
128128
```
129129
3. Automated workflow:
130-
- Builds binaries for all platforms
131-
- Creates Homebrew bottles
132-
- Publishes GitHub release
133-
- Updates Homebrew formula automatically
130+
- Builds binaries for all platforms
131+
- Publishes GitHub release
132+
- Updates Homebrew tap formula
133+
- Updates Scoop bucket manifest
134+
- Submits WinGet package to `microsoft/winget-pkgs`
135+
- Publishes AUR package (`wt-bin`)
136+
- Creates `.deb`, `.rpm`, and `.pkg.tar.zst` packages
134137

135138
## Getting Help
136139

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ scoop install wt
3737
wt init # Configure shell integration
3838
```
3939

40+
### WinGet (Windows)
41+
42+
```powershell
43+
winget install timvw.wt
44+
wt init # Configure shell integration
45+
```
46+
4047
### Linux Packages
4148

4249
Download `.deb`, `.rpm`, or `.pkg.tar.zst` packages from the [releases page](https://github.com/timvw/wt/releases).

0 commit comments

Comments
 (0)