docs.yml 764 B

123456789101112131415161718192021222324252627282930313233
  1. # This is a basic workflow to help you get started with Actions
  2. name: MkDocs CI
  3. on:
  4. push:
  5. branches: [ master, docs ]
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Set up Python
  12. uses: actions/setup-python@v2
  13. with:
  14. python-version: '3.10'
  15. - name: Install Pip
  16. run: python -m pip install --upgrade pip
  17. - name: Install dependencies
  18. run: pip install mkdocs && pip install mkdocs-material markdown-include
  19. - name: Build docs
  20. run: python -m mkdocs build
  21. - name: Deploy MkDocs
  22. uses: mhausenblas/mkdocs-deploy-gh-pages@1.17
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. EXTRA_PACKAGES: "gcc libxml2-dev libxslt-dev musl-dev"