Skip to content

Commit 8901d2c

Browse files
committed
add: actions workflow changed
1 parent 8d07087 commit 8901d2c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/generate_docs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,33 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14+
# Step 1: Check out the code
1415
- name: Check out code
1516
uses: actions/checkout@v3
1617

18+
# Step 2: Set up Python environment
1719
- name: Set up Python
1820
uses: actions/setup-python@v4
1921
with:
2022
python-version: "3.9"
2123

24+
# Step 3: Install dependencies from requirements-docs.txt
2225
- name: Install dependencies
2326
run: |
2427
python -m pip install --upgrade pip
2528
pip install -r requirements-docs.txt
2629
30+
# Step 4: Build the MkDocs documentation
2731
- name: Build documentation
2832
run: |
2933
mkdocs build
3034
35+
# Step 5: Deploy to GitHub Pages
3136
- name: Deploy to GitHub Pages
3237
uses: peaceiris/actions-gh-pages@v3
3338
with:
3439
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

0 commit comments

Comments
 (0)