forked from beekeeper-studio/beekeeper-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.25 KB
/
studio-master.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Studio - Master build
on:
push:
branches:
- "master"
paths-ignore:
- 'apps/sqltools/**'
jobs:
masterbuild:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, ubuntu-20.04, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: yarn
- name: Clean cache
run: yarn cache clean
- name: Check dependencies
run: "yarn install --frozen-lockfile --network-timeout 100000"
- name: Build Electron app
run: "yarn run electron:build --publish never"
- name: Cleanup artifacts
if: "!startsWith(matrix.os, 'windows')"
run: |
npx rimraf "apps/studio/dist_electron/!(*.exe|*.deb|*.rpm|*.AppImage|*.dmg|*.snap)"
- name: Cleanup artifacts Win
if: "startsWith(matrix.os, 'windows')"
continue-on-error: true
run: |
npx rimraf "apps\studio\dist_electron\!(*.exe)"
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os }}
path: apps/studio/dist_electron