From 3e8978db07f87543c3865c4cb529581d34e8b65f Mon Sep 17 00:00:00 2001 From: Ari Date: Sat, 27 Jul 2024 17:26:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C?= =?UTF-8?q?=EC=9A=B0=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update-markdown-files.yml | 37 +++++++++++++++++-- ...IBOutlet_didSet,_updateViewConstraints.md} | 0 2 files changed, 34 insertions(+), 3 deletions(-) rename Sources/AriNote/TIL.docc/UIKit/{211123_App_Life_Cycle,_init(frame:),_init(coder:),_frame,_bounds,_IBOutlet_didSet,_updateViewConstraints.md => 211123_App_Life_Cycle,_UIView_init,_frame_vs_bounds,_IBOutlet_didSet,_updateViewConstraints.md} (100%) diff --git a/.github/workflows/update-markdown-files.yml b/.github/workflows/update-markdown-files.yml index 4cc19a8..d101ef5 100644 --- a/.github/workflows/update-markdown-files.yml +++ b/.github/workflows/update-markdown-files.yml @@ -5,9 +5,24 @@ on: branches: - main +# GitHub Pages 에 배포하기 위한 GITHUB_TOKEN 권한 설정 +permissions: + contents: read + pages: write + id-token: write +# 동시성 배포 허용 +concurrency: + group: "pages" + cancel-in-progress: true + jobs: update-markdown: - runs-on: macos-latest + runs-on: macos-13 + + - name: Setup Xcode version + uses: maxim-lobanov/setup-xcode@v1 # xcode 버전 설정을 위함 + with: + xcode-version: '15.0' steps: - name: Checkout repository @@ -19,7 +34,6 @@ jobs: uses: swift-actions/setup-swift@v2 with: swift-version: "5.10.1" - run: swift --version - name: Run Swift script and check result working-directory: ${{ github.workspace }} @@ -42,4 +56,21 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} \ No newline at end of file + branch: ${{ github.ref }} + + - name: Build Documentation + run: | + swift package --allow-writing-to-directory ./docs \ + generate-documentation --target AriNote \ + --disable-indexing \ + --transform-for-static-hosting \ + --output-path ./docs + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: 'docs' + + - name: Deploy to Pages + id: deployment + uses: actions/deploy-pages@v1 \ No newline at end of file diff --git a/Sources/AriNote/TIL.docc/UIKit/211123_App_Life_Cycle,_init(frame:),_init(coder:),_frame,_bounds,_IBOutlet_didSet,_updateViewConstraints.md b/Sources/AriNote/TIL.docc/UIKit/211123_App_Life_Cycle,_UIView_init,_frame_vs_bounds,_IBOutlet_didSet,_updateViewConstraints.md similarity index 100% rename from Sources/AriNote/TIL.docc/UIKit/211123_App_Life_Cycle,_init(frame:),_init(coder:),_frame,_bounds,_IBOutlet_didSet,_updateViewConstraints.md rename to Sources/AriNote/TIL.docc/UIKit/211123_App_Life_Cycle,_UIView_init,_frame_vs_bounds,_IBOutlet_didSet,_updateViewConstraints.md