Skip to content

Publish Desktop Release to WinGet #31

Publish Desktop Release to WinGet

Publish Desktop Release to WinGet #31

name: Publish Desktop Release to WinGet
on:
workflow_dispatch:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- id: "hrzlgnm.mdns-browser"
repo: "hrzlgnm/mdns-browser"
url: https://github.com/hrzlgnm/mdns-browser/releases/download/mdns-browser-v{VERSION}/mdns-browser_${VERSION}_x64-setup.exe
steps:
- name: Update Packages
uses: michidk/winget-updater@latest
with:
komac-version: "2.6.0"
komac-token: ${{ secrets.WINGET_TOKEN }}
identifier: ${{ matrix.id }}
repo: ${{ matrix.repo }}
url: ${{ matrix.url }}
cleanup:
name: Cleanup branches
needs: publish # Not necessarily needed as PRs don't get closed that quick but still nice to have it in order
runs-on: ubuntu-24.04
steps:
- name: Run Komac
uses: michidk/run-komac@latest
with:
komac-version: "2.6.0"
args: "cleanup --only-merged --token=${{ secrets.WINGET_TOKEN }}"