Fix WinGet version bump (#1165)

Use WinGet to install `wingetcreate`, rather than using
Invoke-WebRequest
This commit is contained in:
Evan Simkowitz 2024-10-28 22:45:13 -07:00 committed by GitHub
parent b56d154c13
commit a170e2c80c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -46,6 +46,9 @@ jobs:
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install wingetcreate
run: winget install wingetcreate
shell: pwsh
- name: Submit WinGet version bump
run: "task artifacts:winget:publish:${{ github.ref_name }}"
env:

View File

@ -247,8 +247,7 @@ tasks:
vars:
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
cmd: |
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
.\wingetcreate.exe update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t $env:GITHUB_TOKEN
wingetcreate update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t $env:GITHUB_TOKEN
yarn:
desc: Runs `yarn`