From f36f7d56aa8acaa1599f9aedd6c234eeda1d8762 Mon Sep 17 00:00:00 2001 From: Jonathan Chemla Date: Tue, 28 Oct 2025 14:56:57 +0100 Subject: [PATCH] Add GitHub Action for WinGet release publishing This PR uses [winget-releaser](https://github.com/vedantmgoyal9/winget-releaser) (which uses Komac). It requires a `Classic Github Personal Access Token` with `public_repo` scope is created, following [this link](https://github.com/settings/tokens/new), then the Token can be added to the repo as a secret named `WINGET_ACC_TOKEN`. See below, that user also will have to fork the winget-pkgs repository. > Notes: > You will need to create a *classic* Personal Access Token (PAT) with `public_repo` scope. New fine-grained PATs aren't supported by the action. Review #172 for information. > Fork [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs) under the same account/organization as the project's repository. If you are forking winget-pkgs on a different account (e.g. bot/personal account), you can use the fork-user input to specify the username of the account where the fork is present. --- .github/workflows/release-winget.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/release-winget.yml diff --git a/.github/workflows/release-winget.yml b/.github/workflows/release-winget.yml new file mode 100644 index 00000000000..6c56716f6ec --- /dev/null +++ b/.github/workflows/release-winget.yml @@ -0,0 +1,13 @@ +name: Publish release to WinGet +on: + release: + types: [released] +jobs: + publish: + runs-on: windows-latest + steps: + - uses: vedantmgoyal9/winget-releaser@latest + with: + identifier: ArduinoSA.CLI + installers-regex: 'Windows\_64bit\.msi' + token: ${{ secrets.WINGET_ACC_TOKEN }}