Release to WinGet
This commit is contained in:
parent
321aee1625
commit
1ce2fb7f2d
|
@ -18,6 +18,11 @@ on:
|
|||
required: true
|
||||
default: '10'
|
||||
type: string
|
||||
winget_publish:
|
||||
description: 'Publish to WinGet'
|
||||
required: true
|
||||
default: true
|
||||
type: boolean
|
||||
snap_publish:
|
||||
description: 'Publish to Snap store'
|
||||
required: true
|
||||
|
@ -207,7 +212,7 @@ jobs:
|
|||
name: Desktop v${{ env.PKG_VERSION }}
|
||||
body: "<insert release notes here>"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
draft: true
|
||||
draft: false
|
||||
|
||||
- name: Update deployment status to Success
|
||||
if: ${{ success() }}
|
||||
|
@ -348,3 +353,18 @@ jobs:
|
|||
shell: pwsh
|
||||
run: choco push
|
||||
working-directory: apps/desktop/dist
|
||||
|
||||
winget:
|
||||
name: Deploy WinGet
|
||||
runs-on: windows-latest
|
||||
needs: [setup]
|
||||
if: ${{ inputs.winget_publish && github.event.inputs.release_type != 'Dry Run' }}
|
||||
steps:
|
||||
- uses: vedantmgoyal2009/winget-releaser@9a8aae9dbbb928faeb232122730efcf4fce593a1
|
||||
with:
|
||||
identifier: Bitwarden.Bitwarden
|
||||
version: ${{ needs.setup.outputs.release-version }}
|
||||
installer-regex: Bitwarden-Installer.*.exe$
|
||||
release-tag: desktop-v${{ needs.setup.outputs.release-version }}
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue