-
Notifications
You must be signed in to change notification settings - Fork 29
71 lines (60 loc) · 1.93 KB
/
bundle-desktop.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: bundle-desktop
on:
push:
branches:
- staging
- production
- desktop
workflow_dispatch:
jobs:
test-and-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
check-latest: true
- name: Install dependencies
run: yarn --immutable
- name: Run linter
run: yarn lint
# TODO re-enable
# - name: Run test
# shell: bash
# run: yarn test
- name: Build with webpack for electron
shell: bash
run: ./scripts/build.sh -n Mainnet -e
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
WALLET_CONNECT_KEY: ${{ secrets.WALLET_CONNECT_KEY }}
- name: Build on Mac
run: yarn electron-builder --mac --publish never
env:
CSC_LINK: ${{ secrets.MAC_CSC_LINK2 }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }}
if: runner.os == 'macOS'
- name: Build on Windows
run: yarn electron-builder --win --publish never || yarn electron-builder --win --publish never
# env:
# CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK2 }}
# CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
if: runner.os == 'Windows'
- name: Install deps for Linux
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
if: runner.os == 'Linux'
- name: Build on Linux
run: yarn electron-builder --linux --publish never
if: runner.os == 'Linux'
- uses: actions/upload-artifact@v2
with:
name: celowallet-artifacts
path: |
dist-electron/*-mac*.dmg
dist-electron/*-mac*.zip
dist-electron/*-linux*.AppImage
dist-electron/*-win*.exe