Skip to content

Commit

Permalink
Fixed winget auth in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lowleveldesign committed Dec 7, 2024
1 parent 8624b40 commit 366cbd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion winget-publish.ps1
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 366cbd4

Please sign in to comment.