From 3522377aa3f322d40567565b64b450d0a98a38e2 Mon Sep 17 00:00:00 2001 From: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Sun, 11 Sep 2022 10:48:38 +0530 Subject: [PATCH] CI(github-actions): Automatically publish to WinGet This commit introduces an automatic approach that will publish the Windows installers to the WinGet repository every time a release is created on GitHub. Fixes #5870 (cherry picked from commit 4551e98c856bd9527128ee301a5a4fa82bd43d9a) --- .github/workflows/winget.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/winget.yml diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 00000000000..38e04f8e4df --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,25 @@ +name: Publish to WinGet +on: + release: + types: [released] +jobs: + publish: + runs-on: windows-latest # action can only be run on windows + steps: + - name: Publish Mumble client + uses: vedantmgoyal2009/winget-releaser@latest + with: + identifier: Mumble.Mumble.Client + installers-regex: mumble_client.*.msi$ + token: ${{ secrets.WINGET_TOKEN }} + + # The action will clone winget-pkgs again, to start fresh + - name: Clean working directory + run: Remove-Item -Recurse -Force .\winget-pkgs\ + + - name: Publish Mumble server + uses: vedantmgoyal2009/winget-releaser@latest + with: + identifier: Mumble.Mumble.Server + installers-regex: mumble_server.*.msi$ + token: ${{ secrets.WINGET_TOKEN }}