Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jun 28, 2024
1 parent 60aff83 commit 886501d
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,15 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: List docs directory
run: ls -l ./docs
- name: Display requirements.txt
run: cat ./docs/requirements.txt

- name: Install dependencies
run: |
pip install -r ./docs/requirements.txt
pip freeze
pip freeze # Display installed packages for debugging
- name: Sphinx build
run: |
sphinx-build -b html docs/source/ docs/build/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/xiaoyi_doc' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/
force_orphan: true
# Building the documentation in the specified directory
sphinx-build -b html docs/source/ ./docs/build/
# Optionally, list output files for debugging
ls -l ./docs/build/

0 comments on commit 886501d

Please sign in to comment.