Skip to content

Commit

Permalink
CI: Upload doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Sep 19, 2024
1 parent 7b9b9ac commit fc674d8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fc674d8

Please sign in to comment.