Skip to content

1.21.0

1.21.0 #6

Workflow file for this run

name: Winget CI
on:
workflow_dispatch:
release:
types:
- published
- created
- released
- prereleased
jobs:
winget:
if: false # Waiting for signpath
name: Update winget manifest
runs-on: windows-latest
steps:
- name: Setup winget-create
run: choco install wingetcreate
- name: Bump Winget manifest
shell: pwsh
env:
WINGET_GITHUB_TOKEN: '${{ secrets.WINGET_UPLOAD_GITHUB_TOKEN }}'
run: >
$tagname = $env:GITHUB_REF.Replace("refs/tags/", "")
$version = $tagname.Replace("v", "")
$url = "https://github.com/DRSchlaubi/tonbrett/releases/download/${tagname}/Tonbrett.msix"
wingetcreate.exe update Schlaubi.Tonbrett -u $url --version $version
if ($version -notmatch "-") {
wingetcreate.exe submit .\manifests\s\Schlaubi\Tonbrett\${version}\ --token $env:WINGET_GITHUB_TOKEN
}