Browse Source

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

Armin Schrenk 2 years ago
parent
commit
b73ab4645b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/win-exe.yml

+ 6 - 0
.github/workflows/win-exe.yml

@@ -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: |