From 74f0fc695cd6eeb1ed23c7dee015cd26aa56c1de Mon Sep 17 00:00:00 2001 From: Simon Costea Date: Tue, 2 Apr 2024 10:52:17 +0200 Subject: [PATCH] Move if statement in run step --- .github/workflows/electron.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 3eb6f54a..06bf4d78 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -36,8 +36,9 @@ jobs: - name: Download certificate file run: | - echo $APPLE_DEVELOPER_ID_FILE | base64 --decode >> developer-id.p12 - if: "$RUNNER_OS" == "macOS" + if [ "$RUNNER_OS" == "macOS" ]; then + echo $APPLE_DEVELOPER_ID_FILE | base64 --decode >> developer-id.p12 + fi shell: bash env: APPLE_DEVELOPER_ID_FILE: ${{secrets.BCCM_APPLE_DEVELOPER_ID_FILE}} @@ -46,14 +47,20 @@ jobs: run: npm run build:electron - name: Building the Electron app for Windows - run: npm run publish - if: "$RUNNER_OS" == "Windows" + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + npm run publish + fi + shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Building the Electron app for Mac - run: npm run publish - if: "$RUNNER_OS" == "macOS" + run: | + if [ "$RUNNER_OS" == "macOS" ]; then + npm run publish + fi + shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: developer-id.p12