tdesktop/.github/workflows/winget.yml

19 lines
580 B
YAML
Raw Normal View History

2022-05-07 03:44:04 +00:00
name: Publish to WinGet
on:
release:
2022-07-23 15:56:23 +00:00
types: [released, prereleased]
2022-05-07 03:44:04 +00:00
jobs:
publish:
runs-on: windows-latest # action can only be run on windows
steps:
2022-07-23 15:56:23 +00:00
- if: github.event.action == 'released'
2022-08-05 14:41:31 +00:00
uses: telegramdesktop/winget-releaser@main
2022-05-07 03:44:04 +00:00
with:
identifier: Telegram.TelegramDesktop
token: ${{ secrets.WINGET_TOKEN }}
2022-07-23 15:56:23 +00:00
- if: github.event.action == 'prereleased'
2022-08-05 14:41:31 +00:00
uses: telegramdesktop/winget-releaser@main
2022-07-23 15:56:23 +00:00
with:
identifier: Telegram.TelegramDesktop.Beta
token: ${{ secrets.WINGET_TOKEN }}