Skip to content

Commit 2e2f6b6

Browse files
committed
Update release-winget.yml
1 parent b67db34 commit 2e2f6b6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
name: Winget Release
22
on:
3-
release:
4-
types: [released]
3+
push:
4+
tags:
5+
- 'v*' # run on any tag push like v8.14.3, v8.15.0 etc.
6+
# release:
7+
# types: [released]
58
jobs:
69
publish:
710
runs-on: windows-latest
811
steps:
9-
- uses: vedantmgoyal9/winget-releaser@main
12+
- name: Checkout tag
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # fetch all history so tags are available
16+
ref: ${{ github.ref }} # this ensures we check out the pushed tag
17+
- name: Winget Releaser
18+
uses: vedantmgoyal9/winget-releaser@main
1019
with:
1120
identifier: libvips.libvips
1221
installers-regex: 'w64\-all*\.zip $'
1322
token: ${{ secrets.WINGET_TOKEN }}
14-
# version: ${{ env.WINGET_TAG_NAME }}
23+
version: ${{ github.ref_name }}

0 commit comments

Comments
 (0)