-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1 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
name: Electron Build and Release
on:
push:
branches:
- 'main'
- 'master'
paths-ignore:
- '**.md'
- '**.yml'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9.4.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install Setuptools for Python (macOS only)
if: matrix.os == 'macos-latest'
run: pip3 install setuptools --break-system-packages
- name: Install dependencies
run: |
cd electron
pnpm install --frozen-lockfile
- name: Build and Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd electron
npm run publish