From ed825d8b37d94b748bba5480ca6425ff50261e71 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Sat, 9 May 2026 16:39:31 -0700 Subject: [PATCH] add winget-releaser workflow Auto-publishes new releases to winget via vedantmgoyal9/winget-releaser. On every "released" event (not pre-release), the action opens a PR against microsoft/winget-pkgs bumping SiddharthVaddem.OpenScreen. Requires: - WINGET_ACC_TOKEN secret: classic PAT with public_repo scope (fine-grained PATs are NOT supported by the action). - A fork of microsoft/winget-pkgs under siddharthvaddem (or pass fork-user if forked elsewhere). Closes #299 Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/publish-winget.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish-winget.yml diff --git a/.github/workflows/publish-winget.yml b/.github/workflows/publish-winget.yml new file mode 100644 index 0000000..62b4b7a --- /dev/null +++ b/.github/workflows/publish-winget.yml @@ -0,0 +1,26 @@ +name: Publish release to WinGet + +on: + release: + types: [released] + workflow_dispatch: + inputs: + tag: + description: "Release tag to publish to winget (e.g. v1.4.0)" + required: true + type: string + +jobs: + publish: + runs-on: windows-latest + if: github.event_name == 'workflow_dispatch' || !github.event.release.prerelease + steps: + - uses: vedantmgoyal9/winget-releaser@v2 + with: + identifier: SiddharthVaddem.OpenScreen + # Match the Windows installer asset attached to each release. + # Today: "Openscreen.Setup.latest.exe". Adjust this regex if you + # ever rename the installer to include a version (e.g. "Setup\.\d+\.\d+\.\d+\.exe"). + installers-regex: 'Setup\..*\.exe$' + release-tag: ${{ inputs.tag || github.event.release.tag_name }} + token: ${{ secrets.WINGET_ACC_TOKEN }}