Skip to content

Commit e727e53

Browse files
committed
Add Winget Releaser workflow
Signed-off-by: Ryan Caezar Itang <sitiom@proton.me>
1 parent af46b7e commit e727e53

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/winget.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to Winget
2+
on:
3+
release:
4+
types: [released]
5+
6+
jobs:
7+
publish:
8+
runs-on: windows-latest # Action can only run on Windows
9+
steps:
10+
- name: Extract version from tag
11+
id: extract_version
12+
run: |
13+
$version = "${{ github.event.release.tag_name }}" -replace "v(\d+)\.(?:0*(\d+))-(\d+)", '$1.$2.$3'
14+
Write-Output "version=$version" >> $GITHUB_OUTPUT
15+
- uses: vedantmgoyal2009/winget-releaser@v2
16+
with:
17+
identifier: daynix.UsbDk
18+
version: ${{ steps.extract_version.outputs.version }}
19+
token: ${{ secrets.WINGET_TOKEN }}

0 commit comments

Comments
 (0)