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