From ecf711b082f9dafb0558153b603788ba20c17b48 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Tue, 10 Aug 2021 21:12:28 +0530 Subject: [PATCH] Fix github actions failing on forks --- .github/workflows/nodejs.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e8d93709..9b6724c4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -39,12 +39,8 @@ jobs: run: | cp build/canary.ico build/icon.ico cp build/canary.icns build/icon.icns - - name: Build (pr) - if: github.event_name == 'pull_request' - run: yarn run dist --publish=never - - name: Build (push) - if: github.event_name == 'push' - run: yarn run dist + - name: Build + run: if [ ! -z "$CSC_LINK" ] ; then yarn run dist ; else unset CSC_LINK && unset WIN_CSC_LINK && yarn run dist --publish=never ; fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.MAC_CERT_P12_BASE64 }}