-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.43 KB
/
release-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
45
46
47
48
49
50
name: Release mac
on: workflow_dispatch
jobs:
release:
name: Build mac binaries
runs-on: macos-latest
timeout-minutes: 90
env:
#DEBUG: 'electron-notarize'
AM_DEV_TOKEN: ${{secrets.AM_DEV_TOKEN}}
LF_API_KEY: ${{secrets.LF_API_KEY}}
LF_API_SECRET: ${{secrets.LF_API_SECRET}}
SPOTIFY_DISABLED: 'true'
APPLE_ID: ${{secrets.APPLE_ID}}
APPLE_ID_PASSWORD: ${{secrets.APPLE_ID_PASSWORD}}
APPLE_TEAM_ID: ${{secrets.APPLE_TEAM_ID}}
CSC_LINK: ${{secrets.APPLE_CERT_BASE64}}
CSC_KEY_PASSWORD: ${{secrets.APPLE_CERT_PASSWORD}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install web view dependencies
run: npm install
- name: Build web view
run: npm run build:electron
- name: Install electron dependencies
working-directory: ./app
run: npm install
- name: Install castlabs-evs
working-directory: ./app
run: python -m pip install --upgrade castlabs-evs
- name: Authorize castlabs-evs
working-directory: ./app
run: python -m castlabs_evs.account reauth -A ${{secrets.CASTLABS_ACCOUNT_NAME}} -P ${{secrets.CASTLABS_PASSWORD}}
- name: Build and package electron app
working-directory: ./app
run: npm exec electron-builder -- --publish always --mac