github-pages.yml 729 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Build and deploy Docs site to GitHub Pages
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches:
  6. - main
  7. permissions:
  8. contents: write
  9. jobs:
  10. github-pages:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout Repo
  14. uses: actions/checkout@v6
  15. - name: Setup Python
  16. uses: actions/setup-python@v6
  17. with:
  18. python-version: '3.13'
  19. - name: Build
  20. run: |
  21. pip install mkdocs-material
  22. mkdocs build
  23. - name: Deploy to GitHub Pages
  24. uses: peaceiris/actions-gh-pages@v4.1.0
  25. with:
  26. github_token: ${{ secrets.GITHUB_TOKEN }}
  27. cname: docs.meshcore.io
  28. publish_dir: ./site
  29. publish_branch: 'gh-pages'