From fc674d821d500e173f40512836fb88aa72a7dfdb Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 19 Sep 2024 14:08:59 +0200 Subject: [PATCH] CI: Upload doc --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b17e92f..3951a0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,4 +26,18 @@ jobs: run: | sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra make html -C doc + - name: Upload + if: ${{ github.ref == 'refs/heads/master' }} + run: | + git clone --depth 1 https://${{ secrets.GH_TOKEN }}@github.com/openturns/openturns.github.io.git /tmp/io + mkdir -p /tmp/io/sphinx/otbenchmark/master + cp -r doc/_build/html/* /tmp/io/sphinx/otbenchmark/master + cd /tmp/io + touch .nojekyll + git config user.email "support@gh.com" + git config user.name "GitHub Actions" + git add -A . + if test `git diff HEAD | wc -c` -eq 0; then exit 0; fi + git commit -a -m "GitHub Actions build ${GITHUB_REPOSITORY} ${GITHUB_RUN_ID}" + git push --quiet origin master > /dev/null 2>&1