Skip to content

Periodic Develop Build #3

Periodic Develop Build

Periodic Develop Build #3

Workflow file for this run

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
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 yarn
- name: Build docs
run: |
source $HOME/.bashrc
nvm use 20
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]