-
Notifications
You must be signed in to change notification settings - Fork 22
44 lines (37 loc) · 1.01 KB
/
build-mac.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
name: Build and Release for MacOS
on:
push:
branches:
- main
tags:
- '*'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x # Here we specify Python 3.x
- name: Get Python Path
run: |
echo "PYTHON_PATH=$(which python3)" >> $GITHUB_ENV # Updated to python3
echo "Python Path: $PYTHON_PATH"
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm install npm install --ignore-engines --legacy-peer-deps
- name: Build
run: npm run build:mac
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist_electron/*.dmg
dist_electron/*.zip
env:
GITHUB_TOKEN: ${{ secrets.ELECTRON_TEMPLATE_TOKEN }}