ci: require persistent Pages mount
Build and Deploy Documentation / build (push) Failing after 35s

This commit is contained in:
2026-08-11 19:53:26 +00:00
parent 05cb603ce0
commit 4109ee9b77
+6 -1
View File
@@ -43,7 +43,12 @@ jobs:
*..*|/*|*/|*//* ) echo "unsafe repository slug: $ORG_REPO" >&2; exit 1 ;; *..*|/*|*/|*//* ) echo "unsafe repository slug: $ORG_REPO" >&2; exit 1 ;;
esac esac
test -f build/index.html test -f build/index.html
destination="/gondor-v1-gitea-pages/$ORG_REPO" pages_root="/gondor-v1-gitea-pages"
if ! mountpoint -q "$pages_root"; then
echo "$pages_root is not a persistent host mount inside the Gitea Actions job container" >&2
exit 1
fi
destination="$pages_root/$ORG_REPO"
rm -rf -- "$destination" rm -rf -- "$destination"
mkdir -p "$destination" mkdir -p "$destination"
cp -a build/. "$destination/" cp -a build/. "$destination/"