docs.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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: qmkfm/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@v3
  22. with:
  23. fetch-depth: 1
  24. - uses: actions/setup-node@v3
  25. with:
  26. node-version: 16
  27. cache: npm
  28. - name: Install dependencies
  29. run: |
  30. apt-get update && apt-get install -y rsync nodejs npm doxygen
  31. npm install -g moxygen
  32. - name: Build doxygen docs
  33. run: |
  34. qmk --verbose generate-docs
  35. - name: Deploy
  36. uses: JamesIves/github-pages-deploy-action@v4.4.1
  37. with:
  38. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  39. BASE_BRANCH: master
  40. BRANCH: gh-pages
  41. FOLDER: .build/docs/build
  42. GIT_CONFIG_EMAIL: hello@qmk.fm