From 0548ab1da94c6d368f9306ea07b5d6350b894e10 Mon Sep 17 00:00:00 2001 From: David Hart Date: Wed, 20 Nov 2024 14:39:07 -0700 Subject: [PATCH] ci: correct order of operations in gh-pages.build --- .github/workflows/gh-pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 448abb4..81e29c6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -72,7 +72,6 @@ jobs: run: | python -m pip install -e .[formats] git config set versionsort.suffix -rc - export SANSMIC_SPHINX_VERSION=dev python sansmic-ci/build_switcher.py export SANSMIC_STABLE_VERSION=`cat stable.txt` mkdir sansmic-ci/docs/$SANSMIC_STABLE_VERSION @@ -80,10 +79,13 @@ jobs: touch sansmic-ci/docs/$SANSMIC_STABLE_VERSION/refman.rst cat sansmic-ci/docs/index.tpl | sed s/BUILD_SCRIPT_REPLACE/$SANSMIC_STABLE_VERSION/g > sansmic-ci/docs/index.rst + export SANSMIC_SPHINX_VERSION=root sphinx-build -b html -d doctrees/root/ sansmic-ci/docs/ html/ mkdir docs/_build mkdir docs/_build/doxyxml mkdir html/ + + export SANSMIC_SPHINX_VERSION=dev sphinx-build -b html -d doctrees/latest docs/ html/latest for TAG in `git tag --list "v*.*.*" --sort=-version:refname` do