From ab6182f69d129cc5702806cd9ef152e64666a4ff Mon Sep 17 00:00:00 2001 From: vikingnope <81376423+vikingnope@users.noreply.github.com> Date: Sun, 17 Aug 2025 16:59:39 +0200 Subject: [PATCH] chore: Winget package automation (#448) --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10bc2b3..b45367e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -737,3 +737,26 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build/web + + # Winget package submission + winget-package-submit: + runs-on: ubuntu-latest + needs: [check-trigger, create_release] + strategy: + matrix: + include: + - build_type: release + identifier: DonutWare.Fladder + max_versions: "" + - build_type: nightly + identifier: DonutWare.Fladder.Nightly + max_versions: "1" + steps: + - name: Submit to Winget (${{ matrix.build_type }}) + if: needs.check-trigger.outputs.build_type == matrix.build_type + uses: vedantmgoyal9/winget-releaser@19e706d4c9121098010096f9c495a70a7518b30f + with: + identifier: ${{ matrix.identifier }} + installers-regex: 'Fladder-Windows-.*-Setup\.exe$' + token: ${{ secrets.WINGET_TOKEN }} + max-versions-to-keep: ${{ matrix.max_versions || '' }}