mirror of
https://github.com/NewFuture/DDNS.git
synced 2026-10-20 08:17:43 +00:00
* feat(web): add local management dashboard Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(web): address review and Python 2 compatibility Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * chore: remove design session artifacts Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(web): harden packaged resources and HTTP semantics Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * test(web): support Python 2 handler mocks Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(web): detect all external schedulers Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: Build Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, main ]
|
|
paths:
|
|
- 'docs/**'
|
|
- 'README.md'
|
|
- 'README.en.md'
|
|
- 'ddns/config/field-model.json'
|
|
- 'schema/**'
|
|
- 'tests/config/**'
|
|
- '.github/workflows/build-docs.yml'
|
|
pull_request:
|
|
branches: [ master, main ]
|
|
paths:
|
|
- 'docs/**'
|
|
- 'README.md'
|
|
- 'README.en.md'
|
|
- 'ddns/config/field-model.json'
|
|
- '.github/workflows/build-docs.yml'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
cache-dependency-path: 'docs/package.json'
|
|
|
|
- name: Install dependencies
|
|
working-directory: docs
|
|
run: npm install
|
|
|
|
- name: Build documentation
|
|
working-directory: docs
|
|
run: npm run build
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v5
|
|
with:
|
|
path: docs/.vitepress/dist/
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
id: deployment
|
|
uses: actions/deploy-pages@v5
|