diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 913206bf..763d8cc1 100644 --- a/.github/workflows/macos.yml +++ b/.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:* diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a3d31568..5a190e98 100644 --- a/.github/workflows/windows.yml +++ b/.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: |