add winget releaser workflow

This commit is contained in:
Ryan Caezar Itang 2023-02-12 23:44:34 +08:00
parent 63feece074
commit b3db9d88c1
No known key found for this signature in database
GPG Key ID: E7C6E0E004B3AED1
1 changed files with 14 additions and 0 deletions

14
.github/workflows/winget.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Publish to Winget
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest # Action can only run on Windows
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: schollz.croc
installers-regex: '_Windows-\w+\.zip$'
token: ${{ secrets.WINGET_TOKEN }}