Add fully automated Winget publishing to build pipeline#1
Conversation
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
|
That was quick yay 🚀 |
|
@copilot how do I make this automatically update with versions? do we need to change the github actions? I want this to be as automated as possible |
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Integrated winget publishing directly into Tag push → build & sign → GitHub release → winget-pkgs PR — all in one workflow. The original separate One-time setup needed:
After that, every tag push auto-publishes to winget. There's also a manual fallback workflow ( Details in the streamlined WINGET.md. |
Enables distribution via
winget install ScottHanselman.MaximizeToVirtualDesktopwith fully automated publishing on every release.How It Works
The release pipeline is fully automated — no manual steps after one-time setup:
Changes
Automation
build.yml: Addedpublish-wingetjob that chains after the build job on tag pushes, usingvedantmgoyal2009/winget-releaserto automatically submit manifests to winget-pkgs.github/workflows/winget-publish.yml: Manual-only fallback workflow (workflow_dispatch) for re-submitting a version if neededWINGET_TOKENsecret (GitHub PAT withpublic_reposcope)Documentation
WINGET.md: Focused guide covering the automated pipeline, one-time setup (PAT + initial submission), and manual fallbackREADME.md: Added Installation section with download instructions and winget previewOne-Time Setup Required
public_reposcope and add it as repo secretWINGET_TOKENwingetcreate new(winget-releaser handles updates, not first-time packages)After initial approval, every tag push auto-publishes to winget.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.