We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ab2de commit 8e16f87Copy full SHA for 8e16f87
.github/workflows/sphinx.yml
@@ -35,8 +35,11 @@ jobs:
35
cp docs/source/index.html docs/build/html/index.html
36
- name: Copy latest version to stable
37
run: |
38
+ # Get the latest version directory dynamically
39
+ LATEST_VERSION=$(ls -1 docs/build/html/ | grep '^v[0-9]' | sort -V | tail -1)
40
+ echo "Latest version detected: $LATEST_VERSION"
41
mkdir -p docs/build/html/stable
- cp -r docs/build/html/v1.0.21/* docs/build/html/stable
42
+ cp -r docs/build/html/$LATEST_VERSION/* docs/build/html/stable/
43
- name: Deploy docs (all versions + stable alias)
44
uses: peaceiris/actions-gh-pages@v3
45
if: github.ref == 'refs/heads/main'
0 commit comments