Add draft doc generator
Some checks failed
release-tag / release-image (push) Successful in 2m0s
Update Wiki from JSDoc / update-wiki (push) Failing after 10s
Lint JavaScript/Node.js / lint-js (push) Successful in 10s
DRB Tests / drb_mocha_tests (push) Successful in 25s

This commit is contained in:
Logan Cusano
2024-08-17 17:46:34 -04:00
parent 0be5b059da
commit edb7ec41b1
4 changed files with 330 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
name: Update Wiki from JSDoc
on:
push:
branches:
- main
# schedule:
# - cron: '0 0 * * 1' # Every Monday at midnight (UTC)
jobs:
update-wiki:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Generate JSDoc
run: npx jsdoc -c jsdoc.json -d docs
- name: Checkout the wiki repository
uses: actions/checkout@v4
with:
repository: logan/drb-server.wiki # Replace with your wiki repository
path: wiki
- name: Update wiki
run: |
cp -r docs/* wiki/
cd wiki
git config user.name "gitea-actions"
git config user.email "gitea-actions@cusano.net"
git add .
git commit -m "Update wiki from JSDoc"
git push