-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (64 loc) · 2.03 KB
/
Copy pathbuild-macos.yml
File metadata and controls
78 lines (64 loc) · 2.03 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build and Release macOS App
on:
release:
types: [published]
workflow_dispatch:
inputs:
uploadUrl:
description: "Upload URL for the build output. If not provided, the action will fail."
required: false
type: string
jobs:
build:
name: Build and Release macOS App
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.2"
- name: Clean build directory
run: |
xcodebuild clean -project Taskito.xcodeproj -scheme Taskito
rm -rf build
- name: Resolve Package Dependencies
run: |
xcodebuild -resolvePackageDependencies -project Taskito.xcodeproj -scheme Taskito
- name: Build the app
run: |
xcodebuild -project Taskito.xcodeproj \
-scheme Taskito \
-configuration Release \
-derivedDataPath build \
ARCHS="arm64 x86_64" \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
-verbose
- name: Verify App Existence
run: ls -la build/Build/Products/Release/
- name: Install appdmg
run: npm install -g appdmg
- name: Create Dist Directory
run: mkdir -p dist
- name: Create DMG with appdmg
run: appdmg appdmg.json dist/Taskito.dmg
- name: Validate DMG
run: hdiutil verify dist/Taskito.dmg
- name: Upload Release Asset
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: dist/Taskito.dmg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload DMG as Artifact
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: Taskito-DMG
path: dist/Taskito.dmg
retention-days: 30