-
-
Notifications
You must be signed in to change notification settings - Fork 147
39 lines (37 loc) · 1.11 KB
/
main.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macOS-11.00
steps:
- name: Setup build environment
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm install -g cross-env create-dmg
- name: Cloning Git repository
uses: actions/checkout@v1
- name: Attempt to build OpenMTP
run: |
yarn
yarn build
- name: Attempt to generate unsigned macOS app
run: |
export CSC_IDENTITY_AUTO_DISCOVERY=false
yarn package-mac-without-notarize 2>&1 || true
- name: Check if macOS app was generated
run: test -e dist/mac/OpenMTP.app
- name: Attempt to create disk image for generated macOS app
run: |
mkdir dist/dmg
create-dmg dist/mac/OpenMTP.app dist/dmg 2>&1 || true
shasum dist/dmg/* >> dist/dmg/CHECKSUM_SHA256.txt
- name: Upload disk image and checksum as artifact
uses: actions/[email protected]
with:
name: 'Disk Image'
path: dist/dmg/