From 003de17e69fb4006dd7cdb036ac41fab72a2988b Mon Sep 17 00:00:00 2001 From: gmegidish Date: Sat, 17 Oct 2026 18:03:48 +0200 Subject: [PATCH] ci: publish releases to winget --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1165ed1..6eae200 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -392,3 +392,19 @@ jobs: npm pkg set "optionalDependencies.@mobilenext/mobilecli-$platform=$GITHUB_REF_NAME" done npm publish --access public --provenance + + winget: + if: github.ref_type == 'tag' + runs-on: windows-latest + needs: [publish] + permissions: + contents: read + steps: + # ponytail: first version must be submitted manually via `komac new`; this only updates existing manifests + - uses: vedantmgoyal9/winget-releaser@v2 + with: + identifier: MobileNext.mobilecli + version: ${{ github.ref_name }} + release-tag: ${{ github.ref_name }} + installers-regex: 'windows-(amd64|arm64)\.zip$' + token: ${{ secrets.WINGET_TOKEN }}