mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Add submit-winget.yml workflow
This commit is contained in:
parent
0a6b12329c
commit
54af528f6c
1 changed files with 24 additions and 0 deletions
24
.github/workflows/submit-winget.yml
vendored
Normal file
24
.github/workflows/submit-winget.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: Submit Tautulli 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: |
|
||||||
|
$wingetPackage = "Tautulli.Tautulli"
|
||||||
|
$gitToken = "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
$github = Invoke-RestMethod -uri "https://api.github.com/repos/Tautulli/Tautulli/releases/latest"
|
||||||
|
$installerUrl = $github | Select -ExpandProperty assets -First 1 | Where-Object -Property name -match "Tautulli-windows-.*-x64.exe" | Select -ExpandProperty browser_download_url
|
||||||
|
$version = "$($github.tag_name.Trim('v')).1"
|
||||||
|
|
||||||
|
# getting latest wingetcreate file
|
||||||
|
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||||
|
.\wingetcreate.exe update $wingetPackage -s -v $version -u $installerUrl -t $gitToken
|
Loading…
Add table
Add a link
Reference in a new issue