-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.72 KB
/
main.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
name: Build/release
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm i -g electron-builder
- run: sudo dpkg --add-architecture i386
if: matrix.os == 'ubuntu-latest'
- run: wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
if: matrix.os == 'ubuntu-latest'
- run: sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
if: matrix.os == 'ubuntu-latest'
- run: sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
if: matrix.os == 'ubuntu-latest'
- run: sudo apt install --install-recommends winehq-stable
if: matrix.os == 'ubuntu-latest'
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
# Only install Snapcraft on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
with:
# Log in to Snap Store
snapcraft_token: ${{ secrets.snapcraft_token }}
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/') }}
skip_build: true