mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 02:44:01 +01:00
20 lines
814 B
YAML
20 lines
814 B
YAML
name: Submit Nushell package to Windows Package Manager Community Repository
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
|
|
winget:
|
|
name: Publish winget package
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Submit package to Windows Package Manager Community Repository
|
|
run: |
|
|
iwr https://github.com/microsoft/winget-create/releases/download/v1.0.4.0/wingetcreate.exe -OutFile wingetcreate.exe
|
|
$github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json
|
|
$installerUrl = $github.release.assets | Where-Object -Property name -match 'windows-msvc.msi' | Select -ExpandProperty browser_download_url -First 1
|
|
.\wingetcreate.exe update Nushell.Nushell -s -v $github.release.tag_name -u $installerUrl -t ${{ secrets.NUSHELL_PAT }}
|