-
-
Notifications
You must be signed in to change notification settings - Fork 442
42 lines (40 loc) · 1.08 KB
/
build-prs-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
name: Build macOS
on:
pull_request:
branches: [main, stable]
workflow_dispatch:
inputs:
version:
description: 'Build Test Files'
required: false
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository.
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install modules.
run: yarn install --frozen-lockfile
- name: Build artifacts.
run: yarn dist:mac --x64 --arm64 --publish=never
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
CSC_IDENTITY_AUTO_DISCOVERY: false
- name: Upload x64.
uses: actions/upload-artifact@v3
with:
name: mac-x64
path: dist/Heroic*x64.dmg
retention-days: 14
- name: Upload ARM64.
uses: actions/upload-artifact@v3
with:
name: mac-arm64
path: dist/Heroic*arm64.dmg
retention-days: 14