From 6c85a1c2be74c0e2ed6c20c27860c9224884f398 Mon Sep 17 00:00:00 2001 From: Filipe Moreira Date: Tue, 29 Sep 2026 09:17:56 -0300 Subject: [PATCH] ci: open the winget-pkgs update PR when a stable release is published Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/release.yml | 20 ++++++++++++++++++++ CHANGELOG.en-US.md | 3 +++ CHANGELOG.md | 3 +++ 3 files changed, 26 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b51d748..064dedd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -153,3 +153,23 @@ jobs: dist/ConsoleMode-Portable-x64.exe env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Opens the update PR on microsoft/winget-pkgs for stable releases (pre-releases are skipped). + # Off until the WINGET_TOKEN secret exists: a classic PAT with the public_repo scope, from the + # account that owns the lippdev/winget-pkgs fork. + winget: + needs: build + if: github.event_name == 'push' && !contains(github.ref_name, '-') + runs-on: ubuntu-latest + env: + WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }} + steps: + - name: Submit to winget-pkgs + if: env.WINGET_TOKEN != '' + uses: vedantmgoyal9/winget-releaser@v2 + with: + identifier: lippdev.ConsoleMode + release-tag: ${{ github.ref_name }} + installers-regex: 'ConsoleMode-Setup-x64\.exe$' + fork-user: lippdev + token: ${{ env.WINGET_TOKEN }} diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index c746d5f..b696c40 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -6,6 +6,9 @@ English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Befor ### What's new - Settings → "Receive test versions (alpha and beta)": anyone can join the tests of upcoming versions from the app. Off by default; turning it on shows a warning that test versions can have bugs. +### Behind the scenes +- Publishing a stable release now also opens the update PR on winget (`winget install lippdev.ConsoleMode`). Test versions are skipped. (#106) + ## [1.6.0-alpha.2] ### Changes - 1.6 is all the project's own code: the option to go back to MultiMonitorTool / SoundVolumeView is gone too, and their old files in the `tools` folder are deleted when the app opens. (#91) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff82d83..c189097 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CH ### Novidades - Ajustes → "Receber versões de teste (alpha e beta)": qualquer pessoa pode entrar nos testes das próximas versões pelo próprio app. Desligado por padrão; ao ligar, o app avisa que a versão pode ter bugs. +### Por trás dos panos +- Publicar uma versão estável agora também abre o PR de atualização no winget (`winget install lippdev.ConsoleMode`). Versões de teste ficam de fora. (#106) + ## [1.6.0-alpha.2] ### Mudanças - A 1.6 é só código do projeto: saiu também a opção de voltar ao MultiMonitorTool / SoundVolumeView, e os arquivos antigos deles na pasta `tools` são apagados ao abrir o app. (#91)