Merge PR #5874: CI(github-actions): Automatically publish to WinGet

This commit is contained in:
Robert Adam 2022-09-11 10:23:01 +02:00 committed by GitHub
commit ac2e5bccb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/winget.yml vendored Normal file
View File

@ -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 }}