forked from qmk/qmk_docs_devel
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (61 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Periodic Develop Build
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
defaults:
run:
shell: bash
permissions:
contents: read
pages: write
id-token: write
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
touch $HOME/.bashrc
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source $HOME/.bashrc
nvm install 20
nvm use 20
corepack enable
npm install -g moxygen
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build docs
run: |
source $HOME/.bashrc
nvm use 20
sed '/default: {/a\ basePath: "/qmk_docs/",' "builddefs/docsgen/.vitepress/config.mts"
qmk --verbose generate-docs
rm .build/docs/CNAME
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: ".build/docs"
deploy-coverage:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2