1.21.0 #5
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: 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 | |
} |