Skip to content

Commit df6c6c6

Browse files
committed
GitHub ActionsでMkDocsをGitHub Pagesへデプロイ
1 parent 398e894 commit df6c6c6

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/documents.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: MkDocs Deploy
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- main
7+
paths:
8+
- 'docs/**'
9+
permissions:
10+
contents: write
11+
jobs:
12+
# https://github.com/marketplace/actions/mkdocs-deployment
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.12.6
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
22+
- name: Install MkDocs
23+
run: pip install mkdocs
24+
- name: Build MkDocs
25+
run: cd docs && mkdocs build
26+
- name: Deploy to GitHub Pages
27+
uses: JamesIves/github-pages-deploy-action@v4
28+
with:
29+
branch: gh-pages # デプロイ先のブランチ
30+
folder: site # ビルド結果のディレクトリ
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
# deploy:
33+
# runs-on: ubuntu-20.04
34+
# steps:
35+
# - name: Configure Pages
36+
# uses: actions/[email protected]
37+
# - name: Deploy to Pages
38+
# uses: actions/[email protected]

docs/.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"jebbs.plantuml",
1414
"hediet.vscode-drawio",
1515
"figma.figma-vscode-extension",
16+
"redhat.vscode-yaml",
1617
]
1718
}

0 commit comments

Comments
 (0)