Skip to content

Update Winget manifests #5

Update Winget manifests

Update Winget manifests #5

Workflow file for this run

name: Update Winget manifests
on:
release:
types: [published]
workflow_dispatch:
jobs:
winget:
if: github.repository == 'pyrevitlabs/pyRevit'
runs-on: windows-2025
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install WingetCreate
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$wingetCreate = Join-Path $env:RUNNER_TEMP 'wingetcreate.exe'
Invoke-WebRequest -Uri 'https://aka.ms/wingetcreate/latest' -OutFile $wingetCreate
$signature = Get-AuthenticodeSignature -FilePath $wingetCreate
if ($signature.Status -ne 'Valid') { throw "Downloaded wingetcreate.exe has invalid Authenticode signature: $($signature.Status)" }
"WINGET_CREATE_EXE=$wingetCreate" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Update WinGet manifests
working-directory: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Publish__WingetToken: ${{ secrets.WINGET_GITHUB_TOKEN }}
Publish__SubmitWinget: true
Publish__WingetCreateExe: ${{ env.WINGET_CREATE_EXE }}
run: dotnet run -c Release -- winget