obs-backgroundremoval 1.1.13 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Submit package to Windows Package Manager Community Repository | |
on: | |
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://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe | |
$github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json | |
$installerUrl = $github.release.assets | Where-Object -Property name -match 'obs-backgroundremoval-*-windows-x64-Installer.exe' | Select -ExpandProperty browser_download_url -First 1 | |
.\wingetcreate.exe update RoyShilkrot.obs-backgroundremoval -s -v $github.release.tag_name -u $installerUrl -t '${{ secrets.OBS_BGREMOVAL_PUBLIC_REPO_PAT }}' |