From 19bbdd5438fd30bf09c7e33930a5877b9f4b4418 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 21 Jun 2023 11:59:50 +0300 Subject: [PATCH] github/workflows: add verification of building docs Signed-off-by: Markus Lehtonen --- .github/workflows/project-checks.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/project-checks.yaml b/.github/workflows/project-checks.yaml index 49d50b1c7..44a6196b3 100644 --- a/.github/workflows/project-checks.yaml +++ b/.github/workflows/project-checks.yaml @@ -37,3 +37,19 @@ jobs: run: | make verify working-directory: src/github.com/containerd/nri-plugin-collection + + - name: Build docs + run: | + make site-build + make clean-html + + - name: Install gh-pages build dependencies + run: | + pip3 install --user -r docs/requirements.txt + echo "`python3 -m site --user-base`/bin" >> $GITHUB_PATH + + - name: Verify update of gh-pages + run: | + git config user.name "Github" + git config user.email "no-reply@github.com" + ./scripts/build/update-gh-pages.sh