File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 88jobs :
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
You can’t perform that action at this time.
0 commit comments