-
-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (39 loc) · 1.1 KB
/
electron-build.yaml
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
38
39
40
41
42
name: Build Electron app
on:
push:
branches:
- master
paths-ignore:
- packages/web/**
jobs:
build_on_win:
runs-on: windows-latest
concurrency:
group: build-electron-dev-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-desktop-app-modules-v1
with:
path: |
node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install dependencies
run: yarn --prefer-offline --frozen-lockfile install
- name: Build
run: yarn app make
- name: Upload the build
uses: actions/upload-artifact@v2
with:
name: coh2-game-stats-dev-${{github.sha}}
path: |
packages/app/out/make/squirrel.windows/x64/*.exe