Skip to content

Commit b420b9d

Browse files
committed
Update GitHub Pages workflow to deploy full MkDocs site
1 parent 5154084 commit b420b9d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/pages.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
workflow_dispatch:
88

99
permissions:
@@ -25,13 +25,26 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v4
2727

28+
- name: Setup Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.9'
32+
33+
- name: Install dependencies
34+
run: |
35+
pip install mkdocs-material
36+
37+
- name: Build site
38+
run: |
39+
mkdocs build
40+
2841
- name: Setup Pages
2942
uses: actions/configure-pages@v4
3043

3144
- name: Upload artifact
3245
uses: actions/upload-pages-artifact@v3
3346
with:
34-
path: docs/progress
47+
path: site
3548

3649
- name: Deploy to GitHub Pages
3750
id: deployment

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
site_name: My AI Project
22
site_description: Documentation for My AI Project
33
site_author: My AI Team
4+
site_url: https://jiangbingo.github.io/my_ai/
45

56
theme:
67
name: material

0 commit comments

Comments
 (0)