Skip to content

Commit

Permalink
ci: add winget releaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sitiom committed Oct 16, 2024
1 parent 6d0753c commit eed02b2
Showing 1 changed file with 25 additions and 0 deletions.
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\.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

0 comments on commit eed02b2

Please sign in to comment.