Skip to content

Commit 9905d4e

Browse files
author
Matthias Koeppe
committed
.github/workflows/doc-build.yml: Save/restore the git repo of the built documentation around running doc-clean
1 parent 3230f00 commit 9905d4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/doc-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ jobs:
8080
# incremental docbuild may introduce broken links (inter-file references) though build succeeds
8181
run: |
8282
set -ex
83-
make doc-clean doc-uninstall sagelib-clean && git clean -fx src/sage && ./config.status && make doc-html
83+
mv /sage/local/share/doc/sage/html/en/.git /sage/.git-doc
84+
make doc-clean doc-uninstall sagelib-clean && git clean -fx src/sage
85+
mkdir -p /sage/local/share/doc/sage/html/en/ && mv /sage/.git-doc /sage/local/share/doc/sage/html/en/
86+
./config.status && make doc-html
8487
working-directory: ./worktree-image
8588
env:
8689
MAKE: make -j2

0 commit comments

Comments
 (0)