-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.19 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
name: Build and Deploy — Mac
run-name: ${{ github.actor }} is building a Mac release
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
jobs:
deploy-on-mac:
runs-on: macos-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: commoners-starter-kit
environment-file: environment.yml
auto-activate-base: false
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
# - uses: apple-actions/import-codesign-certs@v1
# with:
# p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
# p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- name: Build and deploy on Mac
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
appleId: ${{ secrets.APPLE_ID }}
appleIdPassword: ${{ secrets.APPLE_PASSWORD }}
run: npm run build -- --target desktop --publish