Skip to content

Commit

Permalink
fix: 워크플로우 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeari95 committed Jul 27, 2024
1 parent 43bab31 commit 3e8978d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions .github/workflows/update-markdown-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -42,4 +56,21 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
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

0 comments on commit 3e8978d

Please sign in to comment.