forked from qmk/qmk_docs_devel
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.05 KB
/
develop.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Periodic Develop Build
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: qmkfm/qmk_cli
steps:
- name: Disable safe.directory check
run : git config --global --add safe.directory '*'
- name: Checkout qmk_firmware
uses: actions/checkout@v2
with:
ref: sn32_develop
repository: 'SonixQMK/qmk_firmware'
- name: Install dependencies
run: |
python3 -m pip install -r requirements-dev.txt
apt-get update && apt-get install -y rsync nodejs npm doxygen
npm install -g moxygen
- name: Build docs
run: |
qmk --verbose generate-docs
rm .build/docs/CNAME
sed -i "s^basePath: '/'^basePath: '/qmk_docs/'^" .build/docs/index.html
- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: .build/docs
clean: true
single-commit: true
git-config-email: [email protected]