-
Notifications
You must be signed in to change notification settings - Fork 14
86 lines (78 loc) · 2.21 KB
/
electron.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
77
78
79
80
81
82
83
84
85
86
name: Update Electron app
on:
push:
branches:
- update/electron_dependencies
jobs:
update_image:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: ubuntu-latest
arch: amd64
# - os: macos-14
# arch: arm64
steps:
- uses: actions/checkout@v4
- name: Use docker
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
- name: Update image
working-directory: ./electron
run: ./update_image.sh
shell: bash
- name: Upload image artifact
uses: actions/upload-artifact@v4
with:
name: accessmod-docker-archive-${{ matrix.arch }}
path: ./electron/resources/docker/accessmod-docker.tar.gz
build:
runs-on: ${{ matrix.os }}
needs: update_image
strategy:
matrix:
include:
# - os: macos-14
# platform: mac
# arch: arm64
- os: ubuntu-22.04
platform: linux
arch: amd64
# - os: macos-12
# platform: mac
# arch: amd64
# - os: windows-2022
# platform: win
# arch: amd64
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: accessmod-docker-archive-${{ matrix.arch }}
path: ./electron/resources/docker/
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Dependencies
working-directory: ./electron
run: yarn install
- name: Build
uses: samuelmeuli/action-electron-builder@v1
with:
release: false
build_script_name: build
package_root: ./electron
github_token: ${{ secrets.github_token }}
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: accessmod-desktop-${{ matrix.platform }}-${{ matrix.arch }}
path: |
./electron/dist/*.dmg
./electron/dist/*.snap
./electron/dist/*-setup.exe