From 366cbd4a04643076cc5865db3ee1fc420be1d106 Mon Sep 17 00:00:00 2001 From: Sebastian Solnica Date: Sat, 7 Dec 2024 12:44:22 +0100 Subject: [PATCH] Fixed winget auth in release script --- .github/workflows/release.yml | 2 ++ winget-publish.ps1 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cba17e6..5bba0bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,8 @@ jobs: files: procgov.zip - name: Publish to winget + env: + WINGET_GH_TOKEN: ${{ secrets.WINGET_GH_TOKEN }} run: ./winget-publish.ps1 - name: Copy the binary to Chocolatey path diff --git a/winget-publish.ps1 b/winget-publish.ps1 index 7bad45d..51d5795 100644 --- a/winget-publish.ps1 +++ b/winget-publish.ps1 @@ -1,7 +1,7 @@ $ErrorActionPreference="Stop" if (-not (Test-Path -Path "wingetcreate.exe")) { - Invoke-WebRequest -Uri "https://github.com/microsoft/winget-create/releases/latest/download/wingetcreate.exe" -OutFile "wingetcreate.exe" + Invoke-WebRequest -Uri "https://aka.ms/wingetcreate/latest" -OutFile "wingetcreate.exe" } $BuildNumber = $env:GITHUB_RUN_NUMBER % [int16]::MaxValue