Skip to content

Commit de9f8e4

Browse files
committed
Add content to GitHub Pages workflow file
- Fill empty pages.yml with complete workflow configuration - Include proper MkDocs build and deployment steps - This should finally enable GitHub Pages deployment
1 parent 73ff141 commit de9f8e4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/pages.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.11'
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install mkdocs mkdocs-material pymdown-extensions
32+
33+
- name: Build documentation
34+
run: mkdocs build --clean
35+
36+
- uses: actions/configure-pages@v4
37+
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: ./site
41+
42+
deploy:
43+
runs-on: ubuntu-latest
44+
needs: build
45+
46+
steps:
47+
- uses: actions/deploy-pages@v4
48+
id: deployment

0 commit comments

Comments
 (0)