Skip to content

Commit b862623

Browse files
committed
fix(ci): install wingetcreate before publish step
1 parent 44e6970 commit b862623

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@ jobs:
273273

274274
# --- Publish to WinGet ---
275275

276+
- name: Install wingetcreate
277+
if: env.WINGET_PAT != ''
278+
shell: pwsh
279+
run: |
280+
$url = "https://aka.ms/wingetcreate/latest"
281+
$dest = "$env:RUNNER_TEMP\wingetcreate.exe"
282+
Invoke-WebRequest -Uri $url -OutFile $dest -UseBasicParsing
283+
Copy-Item $dest "$env:LOCALAPPDATA\Microsoft\WindowsApps\wingetcreate.exe" -Force
284+
276285
- name: Publish to WinGet
277286
if: env.WINGET_PAT != ''
278287
shell: pwsh

0 commit comments

Comments
 (0)