Skip to content

Commit

Permalink
fixing docs builds in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko committed Nov 23, 2024
1 parent ee2a52c commit ddd47e0
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ jobs:
with:
python-version: '3.x' # Specify Python version as needed

- name: Build v1.0.3 documentation
run: |
git checkout v1.0.3
pip install -e .
pip install -e ".[doc]"
cd docs
make html
mkdir -p ../build/html/v1.0.3
cp -r build/html/* ../build/html/v1.0.3/
git stash
git checkout -
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -32,21 +45,6 @@ jobs:
cd docs
make html
- name: Build v1.0.3 documentation
run: |
git stash
git checkout v1.0.3
pip install -e .
pip install "jinja2<3"
pip uninstall sphinx-design pydata-sphinx-theme
pip install -e ".[doc]"
cd docs
make html
mkdir -p ../build/html/v1.0.3
cp -r build/html/* ../build/html/v1.0.3/
git checkout -
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down

0 comments on commit ddd47e0

Please sign in to comment.