-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.03 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
name: Release MacOS
on:
workflow_dispatch:
jobs:
build:
if: contains('["xlc520"]', github.actor)
permissions:
contents: write
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Setup pnpm
run: npm install -g pnpm@9
- name: Install dependencies
run: pnpm install
- name: Compile project
run: pnpm run build:compile
- name: Build for MacOS
run: pnpm run build:mac
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: release-${{ matrix.os }}
path: release
- name: Upload to GitHub Releases
uses: softprops/action-gh-release@v1
with:
draft: true
fail_on_unmatched_files: false
files: |
release/*.dmg
release/*.blockmap