Skip to content

Commit 25edd93

Browse files
committed
build actions
1 parent bc48d96 commit 25edd93

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build macOS app
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: macos-14
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Build app
16+
run: |
17+
xcodebuild -project Daycal.xcodeproj -scheme Daycal -configuration Release -derivedDataPath build
18+
19+
- name: Package app
20+
run: |
21+
mkdir -p dist
22+
cp -R "build/Build/Products/Release/Daycal.app" dist/
23+
cd dist
24+
ditto -c -k --sequesterRsrc --keepParent Daycal.app Daycal.zip
25+
26+
- name: Upload artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: Daycal
30+
path: dist/Daycal.zip

0 commit comments

Comments
 (0)