Skip to content

Commit 19f626f

Browse files
var-ggclaude
andcommitted
ci(release): auto-submit winget-pkgs PR on every tagged release
After the first manual wingetcreate submission (PR microsoft/winget-pkgs#379201 for v0.4.0), every subsequent tagged release should bump the community winget manifest automatically. Uses vedantmgoyal9/winget-releaser, runs after the build matrix completes, picks up the gitwink_*_x64-setup.exe NSIS installer from the freshly published GitHub Release, and opens a PR against microsoft/winget-pkgs as var-gg. The WINGET_TOKEN repo secret needs to be set to a GitHub PAT with public_repo scope for the var-gg account. Prereleases (tags with a hyphen) are skipped. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7772dd8 commit 19f626f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,20 @@ jobs:
8686
releaseDraft: false
8787
prerelease: false
8888
args: ${{ matrix.args }}
89+
90+
# Open a PR against microsoft/winget-pkgs with the bumped NSIS installer.
91+
# First-time submission was a manual wingetcreate run; this job keeps it
92+
# current on every tagged release. Skips if WINGET_TOKEN isn't set (e.g.
93+
# forks without the secret), so it never blocks a release.
94+
publish-winget:
95+
name: Update winget-pkgs manifest
96+
needs: build
97+
runs-on: ubuntu-latest
98+
if: ${{ !contains(github.ref_name, '-') }} # skip prereleases like v0.4.0-rc1
99+
steps:
100+
- name: Submit PR to microsoft/winget-pkgs
101+
uses: vedantmgoyal9/winget-releaser@v2
102+
with:
103+
identifier: var-gg.gitwink
104+
installers-regex: 'gitwink_.*_x64-setup\.exe$'
105+
token: ${{ secrets.WINGET_TOKEN }}

0 commit comments

Comments
 (0)