-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (39 loc) · 1.5 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
name: Build-and-deploy-mac
run-name: ${{ github.actor }} is building a MAC release for NWB GUIDE
on:
workflow_dispatch:
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.10"
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: nwb-guide
environment-file: environments/environment-MAC.yml
auto-activate-base: false
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install package.json modules and their dependencies
run: npm install --ignore-scripts
- name: Remove bad sonpy file (might make Spike2 format unusable on Mac - should exclude from selection)
run: rm -f /usr/local/miniconda/envs/nwb-guide/lib/python3.9/site-packages/sonpy/linux/sonpy.so
- uses: apple-actions/import-codesign-certs@v1
with:
# Currently this is set to Ryan's Developer ID certificate
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- name: Build and deploy on MAC
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Currently this is set to Ryan's Apple ID and app-specific password
appleId: ${{ secrets.APPLE_ID }}
appleIdPassword: ${{ secrets.APPLE_PASSWORD }}
run: npm run deploy:mac