Skip to content

Commit

Permalink
Move if statement in run step
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1m0n committed Apr 2, 2024
1 parent a2a34f3 commit 74f0fc6
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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
Expand Down

0 comments on commit 74f0fc6

Please sign in to comment.