Eugene Pankov 6 ani în urmă
părinte
comite
55fefa65ff
2 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 2 2
      .github/workflows/macos.yml
  2. 2 2
      .github/workflows/windows.yml

+ 2 - 2
.github/workflows/macos.yml

@@ -38,7 +38,7 @@ jobs:
 
     - name: Build and sign packages
       run: scripts/build-macos.js
-      if: github.head_ref
+      if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
       env:
         DEBUG: electron-builder,electron-builder:*
         GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -47,7 +47,7 @@ jobs:
 
     - name: Build packages without signing
       run: scripts/build-macos.js
-      if: "! github.head_ref"
+      if: github.repository != 'Eugeny/terminus' || github.event_name != 'push'
       env:
         DEBUG: electron-builder,electron-builder:*
 

+ 2 - 2
.github/workflows/windows.yml

@@ -23,7 +23,7 @@ jobs:
 
     - name: Build and sign packages
       run: node scripts/build-windows.js
-      if: github.head_ref
+      if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
       env:
         GH_TOKEN: ${{ secrets.GH_TOKEN }}
         WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
@@ -31,7 +31,7 @@ jobs:
 
     - name: Build packages without signing
       run: node scripts/build-windows.js
-      if: "! github.head_ref"
+      if: github.repository != 'Eugeny/terminus' || github.event_name != 'push'
 
     - name: Package artifacts
       run: |