Skip to content

Commit b5ff7d5

Browse files
committed
Update workflows
1 parent 45c08a5 commit b5ff7d5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build-docs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ on:
88
jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
11-
permissions: # ←★ これを追加
12-
contents: write # (リポジトリへの push を許可)
11+
permissions:
12+
contents: write # リポジトリへの push を許可
1313

1414
steps:
15-
# リポジトリ取得
15+
# リポジトリ取得
1616
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 1
1919

20-
# Python + MkDocs (Material) をセットアップ
20+
# Python + MkDocs をセットアップ
2121
- uses: actions/setup-python@v5
2222
with:
2323
python-version: '3.x'
2424

2525
- name: Install MkDocs
26-
run: |
27-
pip install mkdocs-material # 必要に応じてテーマ・プラグインを追加
26+
run:
27+
pip install mkdocs-material
2828

29-
# ドキュメントをビルド
29+
# ドキュメントをビルド
3030
- name: Build site
31-
run: mkdocs build --clean # 出力先はデフォルトで ./site
31+
run: mkdocs build --clean
3232

33-
# gh-pages ブランチへデプロイ
33+
# gh-pages ブランチへデプロイ
3434
- name: Deploy to GitHub Pages
3535
uses: peaceiris/actions-gh-pages@v4
3636
with:
3737
github_token: ${{ secrets.GITHUB_TOKEN }} # リポジトリ自動付与の token
38-
publish_dir: ./site # ③で生成されたディレクトリ
39-
publish_branch: gh-pages # デフォルト。好きに変更可
38+
publish_dir: ./site # デフォルトの出力先ディレクトリ
39+
publish_branch: gh-pages

0 commit comments

Comments
 (0)