From 0c35fd34e08ffa77b63c9e8f9a4016873467ab2e Mon Sep 17 00:00:00 2001 From: Agampreet Singh <68941022+agam778@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:09:49 +0530 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5299534..d832fbe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,12 +19,18 @@ jobs: with: node-version: latest - - name: Upgrade yarn version - run: corepack prepare yarn@3.3.0 --activate - - name: Build and release with electron-builder run: | export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} yarn - yarn dist -c.snap.publish=github + if [ "$RUNNER_OS" == "Linux" ]; then + yarn dist -c.snap.publish=github + elif [ "$RUNNER_OS" == "Windows" ]; then + yarn dist + elif [ "$RUNNER_OS" == "macOS" ]; then + yarn dist -m --x64 --arm64 + else + echo "$RUNNER_OS not supported" + exit 1 + fi shell: bash