only publish to winget, if workflow triggered by release or explicitly stated

This commit is contained in:
Armin Schrenk
2022-07-15 11:14:21 +02:00
parent c70961405c
commit b73ab4645b

View File

@@ -8,6 +8,11 @@ on:
version:
description: 'Version'
required: false
winget-release:
description: 'Release artifacts to winget'
required: true
type: boolean
default: false
env:
JAVA_VERSION: 17
@@ -193,6 +198,7 @@ jobs:
name: Publish on winget repo
runs-on: windows-latest
needs: [build-msi]
if: github.event.action == 'release' || inputs.winget-release
steps:
- name: Submit package to Windows Package Manager Community Repository
run: |