summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2021-10-06 16:35:46 -1000
committerPaul Spooren <mail@aparcar.org>2021-10-08 17:16:04 -1000
commit56ef04849d46d355eccea8482cba43ec7ba582f6 (patch)
tree481b34fa3f5b6b02ca7c12ac40644fdb30f99745 /.github
parentc1f972df1bb9a54048b4e6243c32e3ee856dd176 (diff)
CI: automatically update jsapi docs
Use a GitHub Action to keep the docs updated, the current onces are 14 month old and outdated. Use latest jsdoc package Add full URL to LuCI.html file in README.md Ignore generated HTML files via .gitignore Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/jsdoc.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/jsdoc.yml b/.github/workflows/jsdoc.yml
new file mode 100644
index 0000000000..dd9d952176
--- /dev/null
+++ b/.github/workflows/jsdoc.yml
@@ -0,0 +1,31 @@
+name: GitHub pages
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Install
+ run: npm install
+
+ - name: Build
+ run: npm run doc
+
+ - name: Archive docs as artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: docs
+ path: ./docs/
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ publish_dir: ./docs/