mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Fix WinGet version bump (#1165)
Use WinGet to install `wingetcreate`, rather than using Invoke-WebRequest
This commit is contained in:
parent
b56d154c13
commit
a170e2c80c
3
.github/workflows/publish-release.yml
vendored
3
.github/workflows/publish-release.yml
vendored
@ -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:
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user