chore(cd): automatically bump winget-pkgs registered version (#340)

Resolves #332

ref: https://github.com/microsoft/winget-pkgs/pull/220105, #298

I have added the [winget section in
wiki](2e18237501...5695e45a36).

This PR aims to keep latest version in the winget-pkgs.
[This action](https://github.com/vedantmgoyal9/winget-releaser) is
widely used for this purpose.

-
3a56c32a1c/.github/workflows/CICD.yml (L261)
-
bbe1721a18/.github/workflows/winget.yml (L10)

However I couldn't test this action in my environment. Could you test
after registering the secret?

Feel free to modify the code and/or secret name in this PR.
This commit is contained in:
Kenichi Kamiya 2025-02-04 20:12:23 +09:00 committed by GitHub
parent 0d5f394082
commit fd8bf61009
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

20
.github/workflows/winget.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Publish to WinGet
on:
release:
types: [released]
workflow_dispatch:
inputs:
tag_name:
description: 'Specific tag name'
required: true
type: string
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2
with:
identifier: 'alexpasmantier.television'
installers-regex: '-windows-x86_64\.zip$'
max-versions-to-keep: 5
token: ${{ secrets.PAT_FOR_WINGET_RELEASER }}