๐จ Phase 3-5: ARKit, Bluetooth, Foundation Models ํํ ๋ฆฌ์ผ ์ถ๊ฐ #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.0' | |
| # ======================================== | |
| # ๐ฆ ๋ฐฐํฌ ํด๋ ์ด๊ธฐํ | |
| # ======================================== | |
| - name: Prepare output | |
| run: mkdir -p deploy | |
| # ======================================== | |
| # ๐ ๋ธ๋ก๊ทธ ์ฌ์ดํธ ๋ณต์ฌ | |
| # ======================================== | |
| - name: Copy blog site | |
| run: | | |
| cp site/index.html deploy/ | |
| mkdir -p deploy/blog | |
| cp -r site/widgets deploy/blog/ | |
| # ======================================== | |
| # ๐ DocC: Widgets | |
| # ======================================== | |
| - 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/widgets \ | |
| --hosting-base-path HIGLab/widgets | |
| # ======================================== | |
| # ๐ DocC: Live Activities (์ฃผ์ ํด์ ํ์ฌ ์ถ๊ฐ) | |
| # ======================================== | |
| # - name: Build DocC - Live Activities | |
| # run: | | |
| # cd tutorials/live-activities | |
| # swift package resolve | |
| # xcodebuild docbuild \ | |
| # -scheme HIGLiveActivities \ | |
| # -derivedDataPath /tmp/docbuild-la \ | |
| # -destination 'generic/platform=iOS' | |
| # $(xcrun --find docc) process-archive \ | |
| # transform-for-static-hosting \ | |
| # /tmp/docbuild-la/Build/Products/Debug-iphoneos/HIGLiveActivities.doccarchive \ | |
| # --output-path ../../deploy/live-activities \ | |
| # --hosting-base-path HIGLab/live-activities | |
| # ======================================== | |
| # ๐ ๋ฐฐํฌ | |
| # ======================================== | |
| - 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 |