-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (50 loc) · 1.52 KB
/
Build-and-deploy-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
51
52
53
54
55
56
57
58
59
60
61
name: Build-and-deploy-mac
run-name: ${{ github.actor }} is building a MAC release for SODA
on:
push:
branches:
- main
- staging
- pre-staging
- sds3
jobs:
deploy-on-mac:
runs-on: macos-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: env-electron-python
environment-file: tools/anaconda-env/environment-MAC.yml
auto-update-conda: true
auto-activate-base: false
- run: |
conda activate env-electron-python
conda info
conda list
- uses: actions/setup-node@v4
with:
node-version: "lts/hydrogen"
- name: Install package.json modules and their dependencies
run: npm install --ignore-scripts
- name: Install macOS-specific dependencies
run: |
npm install dmg-license --save-dev
- uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- name: Deploy the app to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
appleId: ${{ secrets.APPLE_ID }}
appleIdPassword: ${{ secrets.APPLE_PASSWORD }}
run: |
npm run deploy-mac