Skip to content

Commit

Permalink
adjust github actions to generate regenerate index.html automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenifer Tabita Ciuciu-Kiss committed Jun 13, 2024
1 parent 9210555 commit be40615
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ jobs:
with:
# Upload entire repository
path: '.'
- shell: bash
- run: |
git config --global --add safe.directory '*'
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
python3 src/generate_doc.py
git add index.html
if git commit --no-verify -m "docs: Regenerate index.html"; then
# rebase and push in a retry loop
for i in {1..5}; do
git pull --rebase && git push && break || sleep 1
done
fi
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit be40615

Please sign in to comment.