You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
930 B

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