Skip to content

Commit

Permalink
multi-version docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko committed Nov 23, 2024
1 parent 9d784e1 commit ec61d5d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@ jobs:
pip install -e .
pip install -e .[doc]
- name: Build documentation
- name: Fetch all tags
run: git fetch --tags

- name: Build current documentation
run: |
cd docs
make html
- name: Build v1.0.3 documentation
run: |
git checkout 1.0.3
cd docs
make html # This should be adjusted to match your build process (e.g., `make html` or `sphinx-build`)
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:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/ # Ensure this matches the output directory
publish_dir: ./build/html/ # Adjusted path since we're copying docs to root build directory

0 comments on commit ec61d5d

Please sign in to comment.