Skip to content

Commit 56a303f

Browse files
Create deploy.yml
ci: add gh-pages deploy workflow.
1 parent b1302ab commit 56a303f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy MkDocs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
- name: Install deps
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install mkdocs mkdocs-material
22+
- name: Deploy
23+
run: |
24+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)