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:
|
with:
|
||||||
version: 3.x
|
version: 3.x
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Install wingetcreate
|
||||||
|
run: winget install wingetcreate
|
||||||
|
shell: pwsh
|
||||||
- name: Submit WinGet version bump
|
- name: Submit WinGet version bump
|
||||||
run: "task artifacts:winget:publish:${{ github.ref_name }}"
|
run: "task artifacts:winget:publish:${{ github.ref_name }}"
|
||||||
env:
|
env:
|
||||||
|
@ -247,8 +247,7 @@ tasks:
|
|||||||
vars:
|
vars:
|
||||||
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
|
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
|
||||||
cmd: |
|
cmd: |
|
||||||
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
wingetcreate update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t $env:GITHUB_TOKEN
|
||||||
.\wingetcreate.exe update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t $env:GITHUB_TOKEN
|
|
||||||
|
|
||||||
yarn:
|
yarn:
|
||||||
desc: Runs `yarn`
|
desc: Runs `yarn`
|
||||||
|
Loading…
Reference in New Issue
Block a user