-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add winget-releaser github action for auto new releases to CapSoftware.Cap #1714
Description
PR microsoft/winget-pkgs#355128 I submitted to winget-pkgs got merged so there is now a CapSoftware.Cap package that can then simply installed by your windows userbase via
winget install CapSoftware.Cap
It would be great to setup a github action workflow into this repo so new Cap releases are automatically pushed to winget. Note this usually involves having the installer published as a github release artifact - right now I'm using a custom regex that won't work with this action, windows\-x64\-setup\.exe
The standard way to do it is to use winget-releaser (which uses Komac under the hood). It requires a Classic Github Personal Access Token with public_repo scope is created, following this link, 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 classicPersonal Access Token (PAT)withpublic_reposcope. New fine-grained PATs aren't supported by the action.
Fork 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.
Here is the standard action workflow file to do so
name: Publish release to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@latest
with:
identifier: CapSoftware.Cap
installers-regex: 'windows\-x64\-setup\.exe'
token: ${{ secrets.WINGET_ACC_TOKEN }}
Describe alternatives you've considered
Let the community maintain the package, risk being outdated recordly package on winget repo