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
|
2023-05-21 13:07:04 +00:00
|
|
|
installers-regex: 't(setup|portable).*(exe|zip)$'
|
2022-05-07 03:44:04 +00:00
|
|
|
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
|
2023-05-21 13:07:04 +00:00
|
|
|
installers-regex: 't(setup|portable).*(exe|zip)$'
|
2022-07-23 15:56:23 +00:00
|
|
|
token: ${{ secrets.WINGET_TOKEN }}
|