This repository was archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
112 lines (112 loc) · 3.3 KB
/
release-app.yml
File metadata and controls
112 lines (112 loc) · 3.3 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: release-app
on:
push:
branches:
- releases/terminalone/app
jobs:
build_win_x64:
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
steps:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: install node-gyp
run: npm i -g node-gyp@latest
- name: update path variables
run: set 'path=%path%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Current\Bin'
- name: clean npm cache
run: npm cache clean -f
- name: install dependencies
run: npm ci
- name: build for windows
run: npm run publish:app:windows:x64
build_mac_x64:
runs-on: macos-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
steps:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: install node-gyp
run: npm i -g node-gyp@latest
- name: clean npm cache
run: npm cache clean -f
- name: install dependencies
run: npm ci
- name: build for mac x64
run: npm run publish:app:mac:x64
build_mac_arm64:
runs-on: macos-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
steps:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: install node-gyp
run: npm i -g node-gyp@latest
- name: clean npm cache
run: npm cache clean -f
- name: install dependencies
run: npm ci
- name: build for mac arm64
run: npm run publish:app:mac:arm64
build_linux_x64:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: install node-gyp
run: npm i -g node-gyp@latest
- name: clean npm cache
run: npm cache clean -f
- name: install dependencies
run: npm ci
- name: build for linux
run: npm run publish:app:linux:x64