docs.yml 580 B

1234567891011121314151617181920212223
  1. name: Packages Docs
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - develop
  7. jobs:
  8. build-test-deploy:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v2
  13. - run: python3 -m pip install -r requirements.txt
  14. - run: python3 -m pip install sphinx_rtd_theme
  15. - run: whereis sphinx-build
  16. - run: export PATH=/usr/local/bin/sphinx-build:$PATH
  17. - run: cd docs && make html
  18. - name: Deploy
  19. uses: crazy-max/ghaction-github-pages@v1
  20. with:
  21. target_branch: gh-pages
  22. build_dir: build