ci(winget): update winget release configuration

This commit is contained in:
Alexandre Pasmantier 2025-02-07 20:40:00 +01:00
parent 1e44478147
commit 56be4dca4f

View File

@ -12,9 +12,17 @@ jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2
- name: Get version
id: get-version
run: |
# Finding the version from release name
$VERSION="${{ github.event.release.name }}" -replace '^.*/ '
"version=$VERSION" >> $env:GITHUB_OUTPUT
shell: pwsh
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: 'alexpasmantier.television'
installers-regex: '-windows-x86_64\.zip$'
max-versions-to-keep: 5
token: ${{ secrets.PAT_FOR_WINGET_RELEASER }}
version: ${{ steps.get-version.outputs.version }}