From 671dfd70348a54601500f567fef5994855101ac8 Mon Sep 17 00:00:00 2001 From: Jure <44338+hoornet@users.noreply.github.com> Date: Fri, 31 Jul 2026 21:56:30 +0200 Subject: [PATCH] ci: auto-submit winget version bump on release New 'winget' job runs after all platform builds: wingetcreate updates Hoornet.Vega with the new version + installer URL and submits the PR to microsoft/winget-pkgs. Skips cleanly if WINGET_TOKEN secret is unset. --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8c49ba..80f444f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -308,3 +308,18 @@ jobs: prerelease: false includeUpdaterJson: true args: ${{ matrix.args }} + + winget: + needs: release + runs-on: windows-latest + env: + WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }} + steps: + - name: Submit version update to winget-pkgs + if: env.WINGET_TOKEN != '' + shell: pwsh + run: | + $version = $env:GITHUB_REF_NAME.TrimStart('v') + $url = "https://github.com/hoornet/vega/releases/download/v$version/Vega_${version}_x64-setup.exe" + Invoke-WebRequest -Uri https://aka.ms/wingetcreate -OutFile wingetcreate.exe + .\wingetcreate.exe update Hoornet.Vega --version $version --urls $url --submit --token $env:WINGET_TOKEN