Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/winget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to Winget

# Auto-submit MSI installers to microsoft/winget-pkgs on each published release.
# Requires a classic PAT with public_repo scope stored as WINGET_TOKEN secret.
# Manual rerun via workflow_dispatch for already published tags.

on:
release:
types: [published]
workflow_dispatch:
inputs:
release-tag:
description: "Existing release tag to submit (e.g. v1.01)"
required: true
type: string

permissions:
contents: read

jobs:
winget:
name: Open winget-pkgs PR
if: ${{ github.event_name != 'release' || !github.event.release.prerelease }}
runs-on: ubuntu-latest
steps:
- name: Submit manifest with winget-releaser
uses: vedantmgoyal9/winget-releaser@v2
with:
identifier: ConSolMonitoring.SNClient
installers-regex: '\.msi$'
release-tag: ${{ github.event.release.tag_name || inputs.release-tag }}
token: ${{ secrets.WINGET_TOKEN }}