change location of gitpages deploy in workflows
This commit is contained in:
@@ -125,7 +125,7 @@ jobs:
|
||||
echo "=== Sphinx build failed with exit $?: showing build output and tree ==="
|
||||
echo "Contents of docs/ after build attempt:"
|
||||
ls -la
|
||||
echo "Contents of docs/_build (if any):"
|
||||
echo "Contents of daq/docs/_build (if any):"
|
||||
ls -la _build || true
|
||||
# If sphinx produced a build log file, print it
|
||||
if [ -f sphinx-build.log ]; then
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
|
||||
# Sanity check: ensure HTML output exists before continuing to deploy
|
||||
if [ ! -d _build/html ] || [ -z "$(ls -A _build/html)" ]; then
|
||||
echo "ERROR: docs/_build/html does not exist or is empty after successful sphinx-build."
|
||||
echo "ERROR: daq/docs/_build/html does not exist or is empty after successful sphinx-build."
|
||||
ls -la _build || true
|
||||
exit 1
|
||||
fi
|
||||
@@ -154,17 +154,17 @@ jobs:
|
||||
git config --global user.email "$GIT_EMAIL"
|
||||
|
||||
# Deploy strategy: create/update branch gitea-pages and replace its contents
|
||||
# with the generated docs/_build/html. This keeps only the documentation
|
||||
# with the generated daq/docs/_build/html. This keeps only the documentation
|
||||
# on the gitea-pages branch.
|
||||
# Confirm build output exists (relative to repository root)
|
||||
BUILD_DIR="docs/_build/html"
|
||||
BUILD_DIR="daq/docs/_build/html"
|
||||
echo "Checking build output at: $BUILD_DIR"
|
||||
if [ ! -d "$BUILD_DIR" ] || [ -z "$(ls -A "$BUILD_DIR")" ]; then
|
||||
echo "ERROR: $BUILD_DIR does not exist or is empty"
|
||||
echo "Listing docs/:"
|
||||
ls -la docs || true
|
||||
echo "Listing docs/_build:"
|
||||
ls -la docs/_build || true
|
||||
echo "Listing daq/docs/_build:"
|
||||
ls -la daq/docs/_build || true
|
||||
exit 1
|
||||
fi
|
||||
# Work in a temporary clone to avoid touching the runner workspace
|
||||
|
||||
Reference in New Issue
Block a user