-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.02 KB
/
ci.yaml
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: CI
on:
push:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
xcodebuild \
-project "ember-macos.xcodeproj" \
-scheme "ember-macos" \
archive \
CODE_SIGN_IDENTITY="-" \
-archivePath "build/ember-macos.xcarchive"
- name: Export
run: |
plutil -convert xml1 - -o "exportOptions.plist" << EOF
{
"destination": "export",
"method": "mac-application"
}
EOF
xcodebuild \
-exportArchive \
-archivePath "build/ember-macos.xcarchive" \
-exportPath "build" \
-exportOptionsPlist "exportOptions.plist"
- name: Convert to DMG
run: hdiutil create -srcdir "build" -volname "ember-macos" "ember-macos.dmg"
- name: Upload
uses: actions/upload-artifact@v3
with:
name: ember-macos.dmg
path: ember-macos.dmg