-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (68 loc) · 2.1 KB
/
publish_app.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
72
73
74
75
76
name: Build & Publish Electron App
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-10.15
- windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: MacOS Fix Network Flakiness
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
sudo sysctl -w net.link.generic.system.hwcksum_tx=0
sudo sysctl -w net.link.generic.system.hwcksum_rx=0
fi
- name: Install Dependencies
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
echo "Installing Linux Dependencies"
sudo apt-get install dpkg
sudo apt-get install fakeroot
sudo apt-get install rpm
sudo apt-get install snapd
sudo apt-get install snapcraft
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "Installing Windows Dependencies"
powershell Install-WindowsFeature Net-Framework-Core
choco install -y wixtoolset
echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" >> $GITHUB_PATH
fi
- name: Install Yarn Dependencies
shell: bash
run: yarn install --frozen-lockfile --network-timeout 100000
- name: Create Artifacts Output Folder
shell: bash
run: mkdir Build-Artifacts
- name: Build App
shell: bash
run: |
yarn make
yarn make --arch arm64
env:
CURRENT_WORKFLOW: "Publish"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Build-Artifacts/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- uses: actions/upload-artifact@v2
with:
path: |
Build-Artifacts/