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.

46 lines
962 B

  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. - 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.1
  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