-
Notifications
You must be signed in to change notification settings - Fork 29
61 lines (51 loc) · 1.79 KB
/
publish-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
name: publish-desktop
on: workflow_dispatch
jobs:
build-and-publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, windows-2019, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- 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 always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.MAC_CSC_LINK2 }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
if: runner.os == 'macOS'
- name: Build on Windows
run: yarn electron-builder --win --publish always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 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 always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: runner.os == 'Linux'