docs.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. - name: Build doxygen docs
  32. run: |
  33. qmk --verbose generate-docs
  34. - name: Deploy
  35. uses: JamesIves/github-pages-deploy-action@v4.4.1
  36. with:
  37. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  38. BASE_BRANCH: master
  39. BRANCH: gh-pages
  40. FOLDER: .build/docs/build
  41. GIT_CONFIG_EMAIL: hello@qmk.fm