-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (31 loc) · 1.05 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Based on
# https://dev.to/erikhofer/build-and-publish-a-multi-platform-electron-app-on-github-3lnd
# Currently, the action can only work with Linux. Both, macOS and Windows fail, due to some hard to
# isolate problems.
# On Windows, it gets interrupted somehow; sometimes showing that a ^C signal came, sometimes via a
# SIGINT. GitHub Runner issue #2468 (https://github.com/actions/runner/issues/2468) seems related to
# this.
# On macOS, it fails reproducable at copying the custom application icon file with an EEXIST error.
# That seems to be electron-builder issue #6570
# (https://github.com/electron-userland/electron-builder/issues/6570)
name: Build
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.github_token }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: latest
- name: Install dependencies
run: npm install
- name: Build
run: npm run dist-ci