Skip to content

Commit d13fa57

Browse files
committed
ci: add winget releaser workflow
1 parent c909421 commit d13fa57

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,32 @@ jobs:
635635
- name: Wait 2 minutes for the Flatpak repo to update
636636
run: sleep 120
637637

638+
release-winget:
639+
if: ${{ inputs.create_release && (inputs.update_branch == 'release' || inputs.update_branch == 'twilight') }}
640+
permissions: write-all
641+
name: Release Winget
642+
needs: [release, build-data]
643+
runs-on: ubuntu-latest
644+
645+
steps:
646+
- name: Publish Stable build
647+
if: ${{ inputs.update_branch == 'release' }}
648+
uses: vedantmgoyal9/winget-releaser@main
649+
with:
650+
identifier: Zen-Team.Zen-Browser
651+
version: ${{ needs.build-data.outputs.version }}
652+
release-tag: ${{ needs.build-data.outputs.version }}
653+
token: ${{ secrets.DEPLOY_KEY }}
654+
- name: Publish Twilight build
655+
if: ${{ inputs.update_branch == 'twilight' }}
656+
uses: vedantmgoyal9/winget-releaser@main
657+
with:
658+
identifier: Zen-Team.Zen-Browser.Twilight
659+
version: ${{ needs.build-data.outputs.version }}
660+
release-tag: ${{ needs.build-data.outputs.version }}
661+
max-versions-to-keep: 1
662+
token: ${{ secrets.DEPLOY_KEY }}
663+
638664
release-flatpak:
639665
if: ${{ inputs.create_release && inputs.update_branch == 'release' }}
640666
permissions: write-all

0 commit comments

Comments
 (0)