docs.yml 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Generate Docs
  2. permissions:
  3. contents: write
  4. on:
  5. push:
  6. branches:
  7. - master
  8. paths:
  9. - 'tmk_core/**'
  10. - 'quantum/**'
  11. - 'platforms/**'
  12. - 'docs/**'
  13. - '.github/workflows/docs.yml'
  14. jobs:
  15. generate:
  16. runs-on: ubuntu-latest
  17. container: ghcr.io/qmk/qmk_cli
  18. # protect against those who develop with their fork on master
  19. if: github.repository == 'qmk/qmk_firmware'
  20. steps:
  21. - uses: actions/checkout@v4
  22. with:
  23. fetch-depth: 1
  24. - name: Install dependencies
  25. run: |
  26. apt-get update && apt-get install -y rsync nodejs npm doxygen
  27. npm install -g moxygen
  28. - name: Build docs
  29. run: |
  30. qmk --verbose generate-docs
  31. - name: Deploy
  32. uses: JamesIves/github-pages-deploy-action@v4.4.3
  33. with:
  34. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  35. BASE_BRANCH: master
  36. BRANCH: gh-pages
  37. FOLDER: .build/docs
  38. GIT_CONFIG_EMAIL: hello@qmk.fm