Skip to content

fix: 워크플로우 에러 수정 #4

fix: 워크플로우 에러 수정

fix: 워크플로우 에러 수정 #4

name: Update Markdown Files
on:
push:
branches:
- main
# GitHub Pages 에 배포하기 위한 GITHUB_TOKEN 권한 설정
permissions:
contents: read
pages: write
id-token: write
# 동시성 배포 허용
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
update-markdown:

Check failure on line 19 in .github/workflows/update-markdown-files.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-markdown-files.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
runs-on: macos-13
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1 # xcode 버전 설정을 위함
with:
xcode-version: '15.0'
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"
- name: Run Swift script and check result
working-directory: ${{ github.workspace }}
run: |
if swift run Script; then
echo "Script executed successfully"
else
echo "Script execution failed"
exit 1
fi
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update markdown files"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
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