File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,33 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
13
13
steps :
14
+ # Step 1: Check out the code
14
15
- name : Check out code
15
16
uses : actions/checkout@v3
16
17
18
+ # Step 2: Set up Python environment
17
19
- name : Set up Python
18
20
uses : actions/setup-python@v4
19
21
with :
20
22
python-version : " 3.9"
21
23
24
+ # Step 3: Install dependencies from requirements-docs.txt
22
25
- name : Install dependencies
23
26
run : |
24
27
python -m pip install --upgrade pip
25
28
pip install -r requirements-docs.txt
26
29
30
+ # Step 4: Build the MkDocs documentation
27
31
- name : Build documentation
28
32
run : |
29
33
mkdocs build
30
34
35
+ # Step 5: Deploy to GitHub Pages
31
36
- name : Deploy to GitHub Pages
32
37
uses : peaceiris/actions-gh-pages@v3
33
38
with :
34
39
github_token : ${{ secrets.GITHUB_TOKEN }}
35
- publish_dir : site
40
+ publish_dir : site
41
+ allow_empty_commit : true
42
+ force_orphan : true
43
+ destination_branch : gh-pages
You can’t perform that action at this time.
0 commit comments