Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add winget releaser workflow #2155

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,31 @@ jobs:
- name: Wait 4 minutes for the flatpak repo to update
run: sleep 240

release-winget:
if: ${{ github.event.inputs.create_release == 'true' && inputs.update_branch == 'alpha' }}
permissions: write-all
name: Release Winget
needs: [release, build-data]
runs-on: ubuntu-latest

steps:
- name: Publish generic build
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: Zen-Team.Zen-Browser
version: ${{ needs.build-data.outputs.version }}
release-tag: ${{ needs.build-data.outputs.version }}
installers-regex: 'zen\.installer-(?:generic|arm64)\.exe$'
token: ${{ secrets.DEPLOY_KEY }}
- name: Publish optimized build
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: Zen-Team.Zen-Browser.Optimized
version: ${{ needs.build-data.outputs.version }}
release-tag: ${{ needs.build-data.outputs.version }}
installers-regex: 'zen\.installer\.exe$'
token: ${{ secrets.DEPLOY_KEY }}

release-flatpak:
if: ${{ inputs.create_release && inputs.update_branch == 'alpha' }}
permissions: write-all
Expand Down