Skip to content

Commit 89bb83b

Browse files
committed
Add GitHub Actions.
Signed-off-by: Yuya Asano <[email protected]>
1 parent 927d290 commit 89bb83b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
architecture: 'x64'
20+
- name: Set up MkDocs
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
- name: Deploy
25+
env:
26+
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }}
27+
run: mkdocs gh-deploy

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mkdocs
2+
mkdocs-material
3+
markdown
4+
pymdown-extensions
5+
mkdocs-git-revision-date-localized-plugin
6+
mkdocs-git-committers-plugin-2

0 commit comments

Comments
 (0)