2020-11-10 16:00:40 +01:00
|
|
|
name: Generate Docs
|
|
|
|
|
2022-12-23 00:41:16 +01:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2020-11-10 16:00:40 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'tmk_core/**'
|
|
|
|
- 'quantum/**'
|
|
|
|
- 'platforms/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- '.github/workflows/docs.yml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
2023-03-17 02:32:09 +01:00
|
|
|
container: ghcr.io/qmk/qmk_cli
|
2020-11-10 16:00:40 +01:00
|
|
|
|
|
|
|
# protect against those who develop with their fork on master
|
|
|
|
if: github.repository == 'qmk/qmk_firmware'
|
|
|
|
|
|
|
|
steps:
|
2023-09-05 19:50:04 +02:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-10 16:00:40 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
apt-get update && apt-get install -y rsync nodejs npm doxygen
|
|
|
|
npm install -g moxygen
|
|
|
|
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
qmk --verbose generate-docs
|
|
|
|
|
|
|
|
- name: Deploy
|
2024-05-20 22:01:20 +02:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.6.1
|
2020-11-10 16:00:40 +01:00
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BASE_BRANCH: master
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: .build/docs
|
|
|
|
GIT_CONFIG_EMAIL: hello@qmk.fm
|