Skip to content

Commit 8f06cb1

Browse files
committed
Add D2l Test workflow for automated documentation build
- Introduced a new GitHub Actions workflow for D2l Test that triggers on push, pull_request, and manual execution. - Set up Python 3.8 environment and caching for Python packages to optimize dependency installation. - Streamlined the installation process for d2l-book and added steps to install pandoc. - Enhanced the documentation build process by ensuring proper activation of the virtual environment before building HTML documentation.
1 parent c3889b2 commit 8f06cb1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/update_docs.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,10 @@ jobs:
5454
- name: Clone html-en Repository
5555
run: |
5656
git clone https://github.com/openmlsys/html-en.git
57-
cp -r _build/html/* html-en/
58-
59-
# Commit and push the updated docs
60-
- name: Commit and Push Changes
61-
run: |
57+
cp -rf _build/html/* html-en/
6258
cd html-en
6359
git config user.name "github-actions[bot]"
6460
git config user.email "github-actions[bot]@users.noreply.github.com"
6561
git add .
66-
# Commit only if there are changes
6762
git diff --quiet || git commit -m 'Update English docs'
68-
# Push changes if there are any
6963
git push || echo "No changes to push"

0 commit comments

Comments
 (0)