From effe66f5b70647793f9131bfb5880c2c89e18a90 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 27 Jun 2021 10:16:53 +0200 Subject: [PATCH] only sign builds on master branch --- .github/workflows/macos.yml | 4 ++-- .github/workflows/windows.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d446da62..29555f34 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -52,7 +52,7 @@ jobs: - name: Build and sign packages run: scripts/build-macos.js - if: github.repository == 'Eugeny/terminus' && github.event_name == 'push' + if: github.repository == 'Eugeny/terminus' && github.event_name == 'push' && github.ref == 'refs/heads/master' env: ARCH: ${{matrix.arch}} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -65,7 +65,7 @@ jobs: - name: Build packages without signing run: scripts/build-macos.js - if: github.repository != 'Eugeny/terminus' || github.event_name != 'push' + if: github.repository != 'Eugeny/terminus' || github.event_name != 'push' || github.ref != 'refs/heads/master' env: ARCH: ${{matrix.arch}} # DEBUG: electron-builder,electron-builder:* diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9a626a8f..ce7e6052 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -26,7 +26,7 @@ jobs: - name: Build and sign packages run: node scripts/build-windows.js - if: github.repository == 'Eugeny/terminus' && github.event_name == 'push' + if: github.repository == 'Eugeny/terminus' && github.event_name == 'push' && github.ref == 'refs/heads/master' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} @@ -35,7 +35,7 @@ jobs: - name: Build packages without signing run: node scripts/build-windows.js - if: github.repository != 'Eugeny/terminus' || github.event_name != 'push' + if: github.repository != 'Eugeny/terminus' || github.event_name != 'push' || github.ref != 'refs/heads/master' - name: Upload symbols run: |