-
Notifications
You must be signed in to change notification settings - Fork 0
chore(workflow): add workflow to deploy documentation as github pages #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||||||
| name: Deploy Documentation | ||||||||||
|
|
||||||||||
| on: [push, pull_request, workflow_dispatch] | ||||||||||
|
|
||||||||||
| permissions: | ||||||||||
| contents: write | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| docs: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| steps: | ||||||||||
| - uses: actions/checkout@v4 | ||||||||||
| - uses: actions/setup-python@v5 | ||||||||||
|
||||||||||
| - uses: actions/setup-python@v5 | |
| - uses: actions/setup-python@v4 |
Copilot
AI
Nov 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing pip upgrade before installing dependencies. Other workflows in the repository upgrade pip first with 'python -m pip install --upgrade pip'. This ensures the latest pip version is used and avoids potential compatibility issues.
| python-version: '3.10' | |
| python-version: '3.10' | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip |
Copilot
AI
Nov 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependencies are installed without version constraints. Consider pinning versions (e.g., 'sphinx<8', 'sphinx_rtd_theme<3', 'myst_parser<3') to ensure reproducible builds and prevent breaking changes from future dependency updates.
| pip install sphinx sphinx_rtd_theme myst_parser | |
| pip install 'sphinx<8' 'sphinx_rtd_theme<3' 'myst_parser<3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow triggers on all push and pull_request events but only deploys on main branch pushes (line 24). This causes unnecessary workflow runs and resource usage for builds that won't be deployed. Consider triggering on 'push: branches: [main]' and 'workflow_dispatch' only, or add a conditional check earlier in the job.