Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 00cc227

Browse files
committed
ci: run: docs: Attempt build of Alice docs
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
1 parent 28263db commit 00cc227

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.ci/run.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,18 @@ function run_docs() {
258258

259259
mv pages "${main_docs}/html"
260260

261+
# Make alice docs
262+
alice_branch_repo="$(mktemp -d)"
263+
alice_docs="$(mktemp -d)"
264+
TEMP_DIRS+=("${main_docs}")
265+
git clone --depth=1 https://github.com/intel/dffml -b alice "${alice_branch_repo}"
266+
rm -rf pages
267+
dffml service dev docs -no-strict || ./scripts/docs.sh
268+
# Check to see if docs built successfully
269+
if [ ! -f pages/index.html ]; then
270+
echo "::warning::Alice docs build failed" 1>&2
271+
fi
272+
261273
# Make last release docs
262274
release_docs="$(mktemp -d)"
263275
TEMP_DIRS+=("${release_docs}")
@@ -287,11 +299,12 @@ function run_docs() {
287299

288300
mv "${release_docs}/old-gh-pages-branch/.git" "${release_docs}/html/"
289301
mv "${main_docs}/html" "${release_docs}/html/main"
302+
mv "${alice_docs}/html" "${release_docs}/html/alice"
290303

291304
cd "${release_docs}/html"
292305

293306
git config user.name 'Alice'
294-
git config user.email 'alice@chadig.com'
307+
git config user.email 'alice@docs.ci.dffml.chadig.com'
295308

296309
git add -A
297310
git commit -sam "docs: $(date)"

0 commit comments

Comments
 (0)