Skip to content

Commit 3522377

Browse files
vedantmgoyal9Krzmbrzl
authored andcommitted
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 4551e98)
1 parent 091919b commit 3522377

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/winget.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to WinGet
2+
on:
3+
release:
4+
types: [released]
5+
jobs:
6+
publish:
7+
runs-on: windows-latest # action can only be run on windows
8+
steps:
9+
- name: Publish Mumble client
10+
uses: vedantmgoyal2009/winget-releaser@latest
11+
with:
12+
identifier: Mumble.Mumble.Client
13+
installers-regex: mumble_client.*.msi$
14+
token: ${{ secrets.WINGET_TOKEN }}
15+
16+
# The action will clone winget-pkgs again, to start fresh
17+
- name: Clean working directory
18+
run: Remove-Item -Recurse -Force .\winget-pkgs\
19+
20+
- name: Publish Mumble server
21+
uses: vedantmgoyal2009/winget-releaser@latest
22+
with:
23+
identifier: Mumble.Mumble.Server
24+
installers-regex: mumble_server.*.msi$
25+
token: ${{ secrets.WINGET_TOKEN }}

0 commit comments

Comments
 (0)