mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
Submit package to winget during release. (#3717)
Add a new job winget in release.yaml that uses wingetcreate to submit package.
This commit is contained in:
parent
9a1e1d5b1e
commit
4e13c339ec
1 changed files with 17 additions and 0 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -162,6 +162,8 @@ jobs:
|
|||
- linux
|
||||
- macos
|
||||
- windows
|
||||
outputs:
|
||||
version: ${{ steps.info.outputs.version }}
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
@ -284,3 +286,18 @@ jobs:
|
|||
asset_path: ./nushell-windows.msi
|
||||
asset_name: ${{ steps.info.outputs.windowsdir }}.msi
|
||||
asset_content_type: applictaion/x-msi
|
||||
|
||||
winget:
|
||||
name: Publish winget package
|
||||
runs-on: windows-latest
|
||||
needs: release
|
||||
steps:
|
||||
- name: Submit package to Windows Package Manager Community Repository
|
||||
run: |
|
||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||
$nushellVersion="${{ needs.release.outputs.version }}"
|
||||
$nushellInstallerName="nu_$($nushellVersion -replace '\.','_')_windows.msi"
|
||||
$installerUrl = "https://github.com/nushell/nushell/releases/download/$nushellVersion/$nushellInstallerName"
|
||||
.\wingetcreate.exe update Nushell.Nushell -v $nushellVersion -u $installerUrl -t ${{ secrets.NUSHELL_PAT }}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue