Add Winget Releaser workflow

This commit is contained in:
Ryan Caezar Itang 2023-03-28 08:31:10 +08:00
parent 1b2c69aee8
commit 33997106da
No known key found for this signature in database
GPG Key ID: E7C6E0E004B3AED1
1 changed files with 12 additions and 0 deletions

View File

@ -431,3 +431,15 @@ jobs:
${{ steps.debian-package.outputs.DPKG_PATH }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
winget:
name: Publish to Winget
runs-on: windows-latest # Action can only run on Windows
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: sharkdp.bat
installers-regex: '-pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}