Skip to content

Commit 24f982c

Browse files
authored
Add GitHub Actions workflow for mkdocs deployment
1 parent 65c4a6a commit 24f982c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy mkdocs (material) site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repo
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
21+
- name: Install MkDocs + Material
22+
run: |
23+
pip install mkdocs-material
24+
25+
- name: Build and deploy
26+
run: |
27+
cd mkdocs
28+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)