Skip to content

Merge pull request #7 from nakata5577/claude/improve-documentation-01… #4

Merge pull request #7 from nakata5577/claude/improve-documentation-01…

Merge pull request #7 from nakata5577/claude/improve-documentation-01… #4

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
# mainブランチへのプッシュ時に実行
push:
branches:
- main
# 手動実行も可能
workflow_dispatch:
# GitHub Pagesへのデプロイに必要な権限
permissions:
contents: write
pages: write
id-token: write
# 同時実行制御:同じワークフローが実行中の場合は待機
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # 全履歴を取得(git情報が必要な場合のため)
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build and deploy to GitHub Pages
run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}