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 5562705
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/update-markdown-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@ 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

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up Swift
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 }}
run: |
Expand All @@ -42,4 +46,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
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.0
// swift-tools-version: 5.10.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
2 changes: 1 addition & 1 deletion Sources/AriNote/TIL.docc/UIKit.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
- <doc:211203_TableView,_뷰의재사용>
- <doc:211126_App_Life_Cycle,_CFGetRetainCount,_README>
- <doc:211125_Auto_Layout,_View_Life_Cycle,_StaticString,_fork해온_repository_잔디적용법>
- <doc:211123_App_Life_Cycle,_init(frame:),_init(coder:),_frame,_bounds,_IBOutlet_didSet,_updateViewConstraints>
- <doc:211123_App_Life_Cycle,_UIView_init,_frame_vs_bounds,_IBOutlet_didSet,_updateViewConstraints>
- <doc:211122_ARC,_OSLog,_debugPrint,_assert,_initializer,_scrollRectToVisible,_CGRect>
- <doc:211119_viewDidLoad,_LocalizedError,_ScrollView_bar_hide,_addSubView,_IBInspectable,_cornerRadius,_viewWillLayoutSubviews,_private_extension>
- <doc:211118_Functional_Programming,_Higher-order_function,_Main_Run_Loop,_Update_Cycle,_UIView,_attribute>
Expand Down

0 comments on commit 5562705

Please sign in to comment.