diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d08133b..ef95e3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,14 +24,32 @@ jobs: - name: Build/release Electron app uses: samuelmeuli/action-electron-builder@v1 - if: runner.os == 'Windows' || runner.os == 'macOS' + if: runner.os == 'macOS' with: skip_build: true # GitHub token, automatically provided to the action # (No need to define this secret in the repo settings) github_token: ${{ secrets.github_token }} - args: "--ia32" + args: "--x64 --arm64" + + mac_certs: ${{ secrets.mac_certs }} + mac_certs_password: ${{ secrets.mac_certs_password }} + + # If the commit is tagged with a version (e.g. "v1.0.0"), + # release the app after building + release: ${{ startsWith(github.ref, 'refs/tags/v') }} + + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + if: runner.os == 'Windows' + with: + skip_build: true + # GitHub token, automatically provided to the action + # (No need to define this secret in the repo settings) + github_token: ${{ secrets.github_token }} + + args: "--ia32 --x64 --arm64" mac_certs: ${{ secrets.mac_certs }} mac_certs_password: ${{ secrets.mac_certs_password }} @@ -49,7 +67,7 @@ jobs: # (No need to define this secret in the repo settings) github_token: ${{ secrets.github_token }} - args: "--linux appimage --ia32 --x64" + args: "--linux appimage --ia32 --x64 --arm64" # If the commit is tagged with a version (e.g. "v1.0.0"), # release the app after building