Skip to content

Commit f36f7d5

Browse files
authored
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.
1 parent 7b8b215 commit f36f7d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Publish release to WinGet
2+
on:
3+
release:
4+
types: [released]
5+
jobs:
6+
publish:
7+
runs-on: windows-latest
8+
steps:
9+
- uses: vedantmgoyal9/winget-releaser@latest
10+
with:
11+
identifier: ArduinoSA.CLI
12+
installers-regex: 'Windows\_64bit\.msi'
13+
token: ${{ secrets.WINGET_ACC_TOKEN }}

0 commit comments

Comments
 (0)