浏览代码

allow notarization on manually dispatched builds

Sebastian Stenzel 1 年之前
父节点
当前提交
1f09a3fa3a
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      .github/workflows/mac-dmg.yml

+ 6 - 1
.github/workflows/mac-dmg.yml

@@ -8,6 +8,11 @@ on:
       version:
         description: 'Version'
         required: false
+      notarize:
+        description: 'Notarize'
+        required: true
+        default: false
+        type: boolean
 
 env:
   JAVA_VERSION: 20
@@ -222,7 +227,7 @@ jobs:
         env:
           VERSION_NO: ${{ needs.get-version.outputs.semVerNum }}
       - name: Notarize .dmg
-        if: startsWith(github.ref, 'refs/tags/')
+        if: startsWith(github.ref, 'refs/tags/') || inputs.notarize
         uses: cocoalibs/xcode-notarization-action@v1
         with:
           app-path: 'Cryptomator-*.dmg'