-
Notifications
You must be signed in to change notification settings - Fork 6
764 lines (703 loc) · 29.9 KB
/
deploy.yml
File metadata and controls
764 lines (703 loc) · 29.9 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
name: Deploy HIG Lab
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Select Xcode 16.2
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
# ========================================
# 🌐 언어 설정 (한국어 기본)
# ========================================
- name: Set Korean as default language
run: |
chmod +x scripts/docc-set-lang.sh
./scripts/docc-set-lang.sh ko
# ========================================
# 📦 배포 폴더 초기화
# ========================================
- name: Prepare output
run: mkdir -p deploy/tutorials deploy/tutorials/en
# ========================================
# 📝 블로그 사이트 복사 (전체)
# ========================================
- name: Copy blog site
run: |
# site 폴더 전체를 deploy로 복사 (index.html + 모든 블로그 폴더)
cp -r site/* deploy/
# ========================================
# 📚 Phase 1: App Frameworks
# ========================================
- name: Build DocC - Widgets
run: |
cd tutorials/widgets
swift package resolve
xcodebuild docbuild \
-scheme HIGWidgets \
-derivedDataPath /tmp/docbuild-widgets \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-widgets/Build/Products/Debug/HIGWidgets.doccarchive \
--output-path ../../deploy/tutorials/widgets \
--hosting-base-path HIGLab/tutorials/widgets
- name: Build DocC - ActivityKit
run: |
cd tutorials/activitykit
swift package resolve
xcodebuild docbuild \
-scheme HIGActivityKit \
-derivedDataPath /tmp/docbuild-activitykit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-activitykit/Build/Products/Debug/HIGActivityKit.doccarchive \
--output-path ../../deploy/tutorials/activitykit \
--hosting-base-path HIGLab/tutorials/activitykit
- name: Build DocC - AppIntents
run: |
cd tutorials/appintents
swift package resolve
xcodebuild docbuild \
-scheme HIGAppIntents \
-derivedDataPath /tmp/docbuild-appintents \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-appintents/Build/Products/Debug/HIGAppIntents.doccarchive \
--output-path ../../deploy/tutorials/appintents \
--hosting-base-path HIGLab/tutorials/appintents
- name: Build DocC - SwiftUI
run: |
cd tutorials/swiftui
swift package resolve
xcodebuild docbuild \
-scheme HIGSwiftUI \
-derivedDataPath /tmp/docbuild-swiftui \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-swiftui/Build/Products/Debug/HIGSwiftUI.doccarchive \
--output-path ../../deploy/tutorials/swiftui \
--hosting-base-path HIGLab/tutorials/swiftui
- name: Build DocC - SwiftData
run: |
cd tutorials/swiftdata
swift package resolve
xcodebuild docbuild \
-scheme HIGSwiftData \
-derivedDataPath /tmp/docbuild-swiftdata \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-swiftdata/Build/Products/Debug/HIGSwiftData.doccarchive \
--output-path ../../deploy/tutorials/swiftdata \
--hosting-base-path HIGLab/tutorials/swiftdata
- name: Build DocC - Observation
run: |
cd tutorials/observation
swift package resolve
xcodebuild docbuild \
-scheme HIGObservation \
-derivedDataPath /tmp/docbuild-observation \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-observation/Build/Products/Debug/HIGObservation.doccarchive \
--output-path ../../deploy/tutorials/observation \
--hosting-base-path HIGLab/tutorials/observation
- name: Build DocC - FoundationModels
run: |
cd tutorials/foundationmodels
swift package resolve
xcodebuild docbuild \
-scheme HIGFoundationModels \
-derivedDataPath /tmp/docbuild-foundationmodels \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-foundationmodels/Build/Products/Debug/HIGFoundationModels.doccarchive \
--output-path ../../deploy/tutorials/foundationmodels \
--hosting-base-path HIGLab/tutorials/foundationmodels
# ========================================
# 📚 Phase 2: App Services
# ========================================
- name: Build DocC - StoreKit
run: |
cd tutorials/storekit
swift package resolve
xcodebuild docbuild \
-scheme HIGStoreKit \
-derivedDataPath /tmp/docbuild-storekit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-storekit/Build/Products/Debug/HIGStoreKit.doccarchive \
--output-path ../../deploy/tutorials/storekit \
--hosting-base-path HIGLab/tutorials/storekit
- name: Build DocC - PassKit
run: |
cd tutorials/passkit
swift package resolve
xcodebuild docbuild \
-scheme HIGPassKit \
-derivedDataPath /tmp/docbuild-passkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-passkit/Build/Products/Debug/HIGPassKit.doccarchive \
--output-path ../../deploy/tutorials/passkit \
--hosting-base-path HIGLab/tutorials/passkit
- name: Build DocC - CloudKit
run: |
cd tutorials/cloudkit
swift package resolve
xcodebuild docbuild \
-scheme HIGCloudKit \
-derivedDataPath /tmp/docbuild-cloudkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-cloudkit/Build/Products/Debug/HIGCloudKit.doccarchive \
--output-path ../../deploy/tutorials/cloudkit \
--hosting-base-path HIGLab/tutorials/cloudkit
- name: Build DocC - AuthServices
run: |
cd tutorials/authservices
swift package resolve
xcodebuild docbuild \
-scheme HIGAuthServices \
-derivedDataPath /tmp/docbuild-authservices \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-authservices/Build/Products/Debug/HIGAuthServices.doccarchive \
--output-path ../../deploy/tutorials/authservices \
--hosting-base-path HIGLab/tutorials/authservices
- name: Build DocC - HealthKit
run: |
cd tutorials/healthkit
swift package resolve
xcodebuild docbuild \
-scheme HIGHealthKit \
-derivedDataPath /tmp/docbuild-healthkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-healthkit/Build/Products/Debug/HIGHealthKit.doccarchive \
--output-path ../../deploy/tutorials/healthkit \
--hosting-base-path HIGLab/tutorials/healthkit
- name: Build DocC - WeatherKit
run: |
cd tutorials/weatherkit
swift package resolve
xcodebuild docbuild \
-scheme HIGWeatherKit \
-derivedDataPath /tmp/docbuild-weatherkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-weatherkit/Build/Products/Debug/HIGWeatherKit.doccarchive \
--output-path ../../deploy/tutorials/weatherkit \
--hosting-base-path HIGLab/tutorials/weatherkit
- name: Build DocC - MapKit
run: |
cd tutorials/mapkit
swift package resolve
xcodebuild docbuild \
-scheme HIGMapKit \
-derivedDataPath /tmp/docbuild-mapkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-mapkit/Build/Products/Debug/HIGMapKit.doccarchive \
--output-path ../../deploy/tutorials/mapkit \
--hosting-base-path HIGLab/tutorials/mapkit
- name: Build DocC - CoreLocation
run: |
cd tutorials/corelocation
swift package resolve
xcodebuild docbuild \
-scheme HIGCoreLocation \
-derivedDataPath /tmp/docbuild-corelocation \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-corelocation/Build/Products/Debug/HIGCoreLocation.doccarchive \
--output-path ../../deploy/tutorials/corelocation \
--hosting-base-path HIGLab/tutorials/corelocation
- name: Build DocC - CoreML
run: |
cd tutorials/coreml
swift package resolve
xcodebuild docbuild \
-scheme HIGCoreML \
-derivedDataPath /tmp/docbuild-coreml \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-coreml/Build/Products/Debug/HIGCoreML.doccarchive \
--output-path ../../deploy/tutorials/coreml \
--hosting-base-path HIGLab/tutorials/coreml
- name: Build DocC - Vision
run: |
cd tutorials/vision
swift package resolve
xcodebuild docbuild \
-scheme HIGVision \
-derivedDataPath /tmp/docbuild-vision \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-vision/Build/Products/Debug/HIGVision.doccarchive \
--output-path ../../deploy/tutorials/vision \
--hosting-base-path HIGLab/tutorials/vision
- name: Build DocC - Notifications
run: |
cd tutorials/notifications
swift package resolve
xcodebuild docbuild \
-scheme HIGNotifications \
-derivedDataPath /tmp/docbuild-notifications \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-notifications/Build/Products/Debug/HIGNotifications.doccarchive \
--output-path ../../deploy/tutorials/notifications \
--hosting-base-path HIGLab/tutorials/notifications
- name: Build DocC - TipKit
run: |
cd tutorials/tipkit
swift package resolve
xcodebuild docbuild \
-scheme HIGTipKit \
-derivedDataPath /tmp/docbuild-tipkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-tipkit/Build/Products/Debug/HIGTipKit.doccarchive \
--output-path ../../deploy/tutorials/tipkit \
--hosting-base-path HIGLab/tutorials/tipkit
- name: Build DocC - SharePlay
run: |
cd tutorials/shareplay
swift package resolve
xcodebuild docbuild \
-scheme HIGSharePlay \
-derivedDataPath /tmp/docbuild-shareplay \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-shareplay/Build/Products/Debug/HIGSharePlay.doccarchive \
--output-path ../../deploy/tutorials/shareplay \
--hosting-base-path HIGLab/tutorials/shareplay
# ========================================
# 📚 Phase 3: Graphics & Media
# ========================================
- name: Build DocC - ARKit
run: |
cd tutorials/arkit
swift package resolve
xcodebuild docbuild \
-scheme HIGARKit \
-derivedDataPath /tmp/docbuild-arkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-arkit/Build/Products/Debug/HIGARKit.doccarchive \
--output-path ../../deploy/tutorials/arkit \
--hosting-base-path HIGLab/tutorials/arkit
- name: Build DocC - RealityKit
run: |
cd tutorials/realitykit
swift package resolve
xcodebuild docbuild \
-scheme HIGRealityKit \
-derivedDataPath /tmp/docbuild-realitykit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-realitykit/Build/Products/Debug/HIGRealityKit.doccarchive \
--output-path ../../deploy/tutorials/realitykit \
--hosting-base-path HIGLab/tutorials/realitykit
- name: Build DocC - SpriteKit
run: |
cd tutorials/spritekit
swift package resolve
xcodebuild docbuild \
-scheme HIGSpriteKit \
-derivedDataPath /tmp/docbuild-spritekit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-spritekit/Build/Products/Debug/HIGSpriteKit.doccarchive \
--output-path ../../deploy/tutorials/spritekit \
--hosting-base-path HIGLab/tutorials/spritekit
- name: Build DocC - CoreImage
run: |
cd tutorials/coreimage
swift package resolve
xcodebuild docbuild \
-scheme HIGCoreImage \
-derivedDataPath /tmp/docbuild-coreimage \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-coreimage/Build/Products/Debug/HIGCoreImage.doccarchive \
--output-path ../../deploy/tutorials/coreimage \
--hosting-base-path HIGLab/tutorials/coreimage
- name: Build DocC - PencilKit
run: |
cd tutorials/pencilkit
swift package resolve
xcodebuild docbuild \
-scheme HIGPencilKit \
-derivedDataPath /tmp/docbuild-pencilkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-pencilkit/Build/Products/Debug/HIGPencilKit.doccarchive \
--output-path ../../deploy/tutorials/pencilkit \
--hosting-base-path HIGLab/tutorials/pencilkit
- name: Build DocC - PDFKit
run: |
cd tutorials/pdfkit
swift package resolve
xcodebuild docbuild \
-scheme HIGPDFKit \
-derivedDataPath /tmp/docbuild-pdfkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-pdfkit/Build/Products/Debug/HIGPDFKit.doccarchive \
--output-path ../../deploy/tutorials/pdfkit \
--hosting-base-path HIGLab/tutorials/pdfkit
- name: Build DocC - AVFoundation
run: |
cd tutorials/avfoundation
swift package resolve
xcodebuild docbuild \
-scheme HIGAVFoundation \
-derivedDataPath /tmp/docbuild-avfoundation \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-avfoundation/Build/Products/Debug/HIGAVFoundation.doccarchive \
--output-path ../../deploy/tutorials/avfoundation \
--hosting-base-path HIGLab/tutorials/avfoundation
- name: Build DocC - AVKit
run: |
cd tutorials/avkit
swift package resolve
xcodebuild docbuild \
-scheme HIGAVKit \
-derivedDataPath /tmp/docbuild-avkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-avkit/Build/Products/Debug/HIGAVKit.doccarchive \
--output-path ../../deploy/tutorials/avkit \
--hosting-base-path HIGLab/tutorials/avkit
- name: Build DocC - MusicKit
run: |
cd tutorials/musickit
swift package resolve
xcodebuild docbuild \
-scheme HIGMusicKit \
-derivedDataPath /tmp/docbuild-musickit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-musickit/Build/Products/Debug/HIGMusicKit.doccarchive \
--output-path ../../deploy/tutorials/musickit \
--hosting-base-path HIGLab/tutorials/musickit
- name: Build DocC - PhotosUI
run: |
cd tutorials/photosui
swift package resolve
xcodebuild docbuild \
-scheme HIGPhotosUI \
-derivedDataPath /tmp/docbuild-photosui \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-photosui/Build/Products/Debug/HIGPhotosUI.doccarchive \
--output-path ../../deploy/tutorials/photosui \
--hosting-base-path HIGLab/tutorials/photosui
- name: Build DocC - CoreHaptics
run: |
cd tutorials/corehaptics
swift package resolve
xcodebuild docbuild \
-scheme HIGCoreHaptics \
-derivedDataPath /tmp/docbuild-corehaptics \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-corehaptics/Build/Products/Debug/HIGCoreHaptics.doccarchive \
--output-path ../../deploy/tutorials/corehaptics \
--hosting-base-path HIGLab/tutorials/corehaptics
- name: Build DocC - ShazamKit
run: |
cd tutorials/shazamkit
swift package resolve
xcodebuild docbuild \
-scheme HIGShazamKit \
-derivedDataPath /tmp/docbuild-shazamkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-shazamkit/Build/Products/Debug/HIGShazamKit.doccarchive \
--output-path ../../deploy/tutorials/shazamkit \
--hosting-base-path HIGLab/tutorials/shazamkit
- name: Build DocC - ImagePlayground
run: |
cd tutorials/imageplayground
swift package resolve
xcodebuild docbuild \
-scheme HIGImagePlayground \
-derivedDataPath /tmp/docbuild-imageplayground \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-imageplayground/Build/Products/Debug/HIGImagePlayground.doccarchive \
--output-path ../../deploy/tutorials/imageplayground \
--hosting-base-path HIGLab/tutorials/imageplayground
# ========================================
# 📚 Phase 4: System & Network
# ========================================
- name: Build DocC - Bluetooth
run: |
cd tutorials/bluetooth
swift package resolve
xcodebuild docbuild \
-scheme HIGBluetooth \
-derivedDataPath /tmp/docbuild-bluetooth \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-bluetooth/Build/Products/Debug/HIGBluetooth.doccarchive \
--output-path ../../deploy/tutorials/bluetooth \
--hosting-base-path HIGLab/tutorials/bluetooth
- name: Build DocC - CoreNFC
run: |
cd tutorials/corenfc
swift package resolve
xcodebuild docbuild \
-scheme HIGCoreNFC \
-derivedDataPath /tmp/docbuild-corenfc \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-corenfc/Build/Products/Debug/HIGCoreNFC.doccarchive \
--output-path ../../deploy/tutorials/corenfc \
--hosting-base-path HIGLab/tutorials/corenfc
- name: Build DocC - MultipeerConnectivity
run: |
cd tutorials/multipeer
swift package resolve
xcodebuild docbuild \
-scheme HIGMultipeer \
-derivedDataPath /tmp/docbuild-multipeer \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-multipeer/Build/Products/Debug/HIGMultipeer.doccarchive \
--output-path ../../deploy/tutorials/multipeer \
--hosting-base-path HIGLab/tutorials/multipeer
- name: Build DocC - Network
run: |
cd tutorials/network
swift package resolve
xcodebuild docbuild \
-scheme HIGNetwork \
-derivedDataPath /tmp/docbuild-network \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-network/Build/Products/Debug/HIGNetwork.doccarchive \
--output-path ../../deploy/tutorials/network \
--hosting-base-path HIGLab/tutorials/network
- name: Build DocC - LocalAuthentication
run: |
cd tutorials/localauth
swift package resolve
xcodebuild docbuild \
-scheme HIGLocalAuth \
-derivedDataPath /tmp/docbuild-localauth \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-localauth/Build/Products/Debug/HIGLocalAuth.doccarchive \
--output-path ../../deploy/tutorials/localauth \
--hosting-base-path HIGLab/tutorials/localauth
- name: Build DocC - CryptoKit
run: |
cd tutorials/cryptokit
swift package resolve
xcodebuild docbuild \
-scheme HIGCryptoKit \
-derivedDataPath /tmp/docbuild-cryptokit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-cryptokit/Build/Products/Debug/HIGCryptoKit.doccarchive \
--output-path ../../deploy/tutorials/cryptokit \
--hosting-base-path HIGLab/tutorials/cryptokit
- name: Build DocC - CallKit
run: |
cd tutorials/callkit
swift package resolve
xcodebuild docbuild \
-scheme HIGCallKit \
-derivedDataPath /tmp/docbuild-callkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-callkit/Build/Products/Debug/HIGCallKit.doccarchive \
--output-path ../../deploy/tutorials/callkit \
--hosting-base-path HIGLab/tutorials/callkit
- name: Build DocC - EventKit
run: |
cd tutorials/eventkit
swift package resolve
xcodebuild docbuild \
-scheme HIGEventKit \
-derivedDataPath /tmp/docbuild-eventkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-eventkit/Build/Products/Debug/HIGEventKit.doccarchive \
--output-path ../../deploy/tutorials/eventkit \
--hosting-base-path HIGLab/tutorials/eventkit
- name: Build DocC - Contacts
run: |
cd tutorials/contacts
swift package resolve
xcodebuild docbuild \
-scheme HIGContacts \
-derivedDataPath /tmp/docbuild-contacts \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-contacts/Build/Products/Debug/HIGContacts.doccarchive \
--output-path ../../deploy/tutorials/contacts \
--hosting-base-path HIGLab/tutorials/contacts
- name: Build DocC - WiFiAware
run: |
cd tutorials/wifiaware
swift package resolve
xcodebuild docbuild \
-scheme HIGWiFiAware \
-derivedDataPath /tmp/docbuild-wifiaware \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-wifiaware/Build/Products/Debug/HIGWiFiAware.doccarchive \
--output-path ../../deploy/tutorials/wifiaware \
--hosting-base-path HIGLab/tutorials/wifiaware
# ========================================
# 📚 Phase 5: iOS 26 신규 기술
# ========================================
- name: Build DocC - VisualIntelligence
run: |
cd tutorials/visualintelligence
swift package resolve
xcodebuild docbuild \
-scheme HIGVisualIntelligence \
-derivedDataPath /tmp/docbuild-visualintelligence \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-visualintelligence/Build/Products/Debug/HIGVisualIntelligence.doccarchive \
--output-path ../../deploy/tutorials/visualintelligence \
--hosting-base-path HIGLab/tutorials/visualintelligence
- name: Build DocC - AlarmKit
run: |
cd tutorials/alarmkit
swift package resolve
xcodebuild docbuild \
-scheme HIGAlarmKit \
-derivedDataPath /tmp/docbuild-alarmkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-alarmkit/Build/Products/Debug/HIGAlarmKit.doccarchive \
--output-path ../../deploy/tutorials/alarmkit \
--hosting-base-path HIGLab/tutorials/alarmkit
- name: Build DocC - EnergyKit
run: |
cd tutorials/energykit
swift package resolve
xcodebuild docbuild \
-scheme HIGEnergyKit \
-derivedDataPath /tmp/docbuild-energykit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-energykit/Build/Products/Debug/HIGEnergyKit.doccarchive \
--output-path ../../deploy/tutorials/energykit \
--hosting-base-path HIGLab/tutorials/energykit
- name: Build DocC - PermissionKit
run: |
cd tutorials/permissionkit
swift package resolve
xcodebuild docbuild \
-scheme HIGPermissionKit \
-derivedDataPath /tmp/docbuild-permissionkit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-permissionkit/Build/Products/Debug/HIGPermissionKit.doccarchive \
--output-path ../../deploy/tutorials/permissionkit \
--hosting-base-path HIGLab/tutorials/permissionkit
- name: Build DocC - RelevanceKit
run: |
cd tutorials/relevancekit
swift package resolve
xcodebuild docbuild \
-scheme HIGRelevanceKit \
-derivedDataPath /tmp/docbuild-relevancekit \
-destination 'platform=macOS'
$(xcrun --find docc) process-archive \
transform-for-static-hosting \
/tmp/docbuild-relevancekit/Build/Products/Debug/HIGRelevanceKit.doccarchive \
--output-path ../../deploy/tutorials/relevancekit \
--hosting-base-path HIGLab/tutorials/relevancekit
# ========================================
# 🌐 영어 버전 빌드
# ========================================
- name: Build English DocC tutorials
run: |
chmod +x scripts/build-docc-all.sh
./scripts/build-docc-all.sh en deploy/tutorials/en
continue-on-error: true
# ========================================
# 🚀 배포
# ========================================
- name: Upload to Pages
uses: actions/upload-pages-artifact@v3
with:
path: 'deploy'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4