build_offline_docs.yml 920 B

12345678910111213141516171819202122232425262728293031
  1. name: Build documentation for offline usage
  2. on:
  3. schedule:
  4. # Every week on Monday at midnight (UTC).
  5. # This keeps the generated HTML documentation fresh.
  6. - cron: '0 0 * * 1'
  7. jobs:
  8. build:
  9. runs-on: ubuntu-20.04
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v2
  13. - name: Install dependencies
  14. run: |
  15. sudo pip3 install -r requirements.txt
  16. sudo pip3 install codespell
  17. # Build the HTML to upload it.
  18. - name: Sphinx build
  19. run: |
  20. sphinx-build --color -d _build/doctrees -W . _build/html
  21. - uses: actions/upload-artifact@v2
  22. with:
  23. name: godot-docs-html
  24. path: _build/html
  25. # Keep the current build and the previous build (in case a scheduled build failed).
  26. # This makes it more likely to have at least one successful build available at all times.
  27. retention-days: 15