forked from qmk/qmk_docs_devel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ on: | |
- cron: '0 * * * *' | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -17,27 +21,49 @@ jobs: | |
- name: Checkout qmk_firmware | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
repository: 'qmk/qmk_firmware' | ||
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 | ||
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 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- name: Build docs | ||
run: | | ||
source $HOME/.bashrc | ||
nvm use 20 | ||
sed -i "/description: \"Documentation for QMK Firmware\",/a\ base: '/qmk_docs/'," "builddefs/docsgen/.vitepress/config.mts" | ||
qmk --verbose generate-docs | ||
rm .build/docs/CNAME | ||
sed -i "s^basePath: '/'^basePath: '/qmk_docs_devel/'^" .build/docs/index.html | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
- name: Upload Artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: .build/docs | ||
clean: true | ||
single-commit: true | ||
git-config-email: [email protected] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# QMK Docs - Develop | ||
# QMK Docs - sn32_develop | ||
|
||
Periodically publishing docs from https://github.com/qmk/qmk_firmware/tree/develop/docs | ||
Periodically publishing docs from https://github.com/SonixQMK/qmk_firmware/tree/sn32_develop/docs |